Ad
  • Custom User Avatar

    python new test framework is required. updated in this fork

  • Custom User Avatar
    Error! Illegal number found in row!
    

    Test error feedback is unacceptable. It should at least tell where exactly is wrong.

  • Custom User Avatar

    Sample tests are broken.

  • Custom User Avatar

    Ruby should be updated to new test framework

  • Custom User Avatar

    The CS version generates n in floating point numbers which is irrelevant to the task !!! This makes a correct solution unable to pass the random tests ~~

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

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

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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
    }