Exemplo n.º 1
0
    public void Test1()
    {
        var solution = new LeetCode.P6.Solution();
        var result   = solution.Convert("PAYPALISHIRING", 3);

        Assert.Equal("PAHNAPLSIIGYIR", result);
    }
Exemplo n.º 2
0
    public void Test4()
    {
        var solution = new LeetCode.P6.Solution();
        var result   = solution.Convert("AB", 1);

        Assert.Equal("AB", result);
    }
Exemplo n.º 3
0
    public void Test7()
    {
        var solution = new LeetCode.P6.Solution();
        var result   = solution.Convert("ABCD", 2);

        Assert.Equal("ACBD", result);
    }
Exemplo n.º 4
0
    public void Test2()
    {
        var solution = new LeetCode.P6.Solution();
        var result   = solution.Convert("PAYPALISHIRING", 4);

        Assert.Equal("PINALSIGYAHRPI", result);
    }