Ad
  • Custom User Avatar

    this would fail this test

    assertEquals(
    "apples, pears# and bananas\ngrapes\nbananas",
    StripComments.stripComments( "apples, pears# and bananas\ngrapes\nbananas !$apples", new String[] { "#$", "!$" } )
    );

  • Custom User Avatar

    The author has provided a function, MorseCode.get(), to retrieve the codes, but if you provide a code that function doesn't know it returns null.

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Custom User Avatar

    When summit my solution I get 4 messages like:

    ./src/test/java/DescendingOrderTest.java:9: error: unreported exception Exception; must be caught or declared to be thrown
    assertEquals(0, DescendingOrder.sortDesc(0));

    But in my tests, I test for this very same case plus:

    		assertEquals(0, DescendingOrder.sortDesc(0));
    		assertEquals(2111111111, DescendingOrder.sortDesc(1111111112));
    		assertEquals(54421, DescendingOrder.sortDesc(21445));
    		assertEquals(654321, DescendingOrder.sortDesc(145263));
    		assertEquals(987654321, DescendingOrder.sortDesc(123456789));
    

    and they all pass. ????

    Any tips? Please .....