• In python initial solution should have 4-space indentation and no final ;.

  • English is not my native language. Please, tell me what the phrase "solve this kata without grindin letters" in the "Instructions" mean?
    Am I missing something?

  • There are no random tests in JS version.

  • Need random test in C++

  • Dectector

    Palindromization - Java 1.8.0_91(Java 8)
    I have problem with the exercise. When I run the sample test without modifying the code I get following error message.
    STDERR:
    /workspace/java/src/KataTests.java:28: error: class, interface, or enum expected
    }
    ^
    1 error

    I noticed that there is addition closing curly brace (}) with no opening brace.

    Default code

    public class Kata {
    public static String palindromization(String elements, int n) {
    return elements;
    }
    }

    Sample Test

    import org.junit.Test;
    import static org.junit.Assert.assertEquals;
    import org.junit.runners.JUnit4;
    public class KataTests {
    @Test
    public void Error_Cases() {

        assertEquals(Kata.palindromization("", 2), "Error!");
        assertEquals(Kata.palindromization("123", 1), "Error!");
    
    }
    
    @Test
    public void Examples() {
        
        assertEquals(Kata.palindromization("123", 2), "11");
        assertEquals(Kata.palindromization("123", 3), "121");
        assertEquals(Kata.palindromization("123", 4), "1221");
        assertEquals(Kata.palindromization("123", 5), "12321");
        assertEquals(Kata.palindromization("123", 6), "123321");
        assertEquals(Kata.palindromization("123", 7), "1231321");
        assertEquals(Kata.palindromization("123", 8), "12311321");
        assertEquals(Kata.palindromization("123", 9), "123121321");
        assertEquals(Kata.palindromization("123", 10), "1231221321");
        
    }
    

    } // No opening curly brace
    }

  • Funny kata ;-)
    JavaScript translation published, please check and approve, thank you!