Ad
  • Default 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

  • Default User Avatar

    Java. This issue is widely discussed below. "0=0" solution with no spaces is inconsistent at all with the other solutions.

  • Default User Avatar

    Java: should be public static int sumOfAngles(int n)

  • Default User Avatar

    expected:<0[=]0> but was:<0[ = ]0> - please decide which kind of equals sign you are using in this kata - with or without spaces around it. Spaces are present in testBasic, for example, but absent in "0=0"

  • Default User Avatar

    Yes, my mistake. Thank you!

  • Default User Avatar

    Anyhow, the kata seems to be long forgotten by its creator, I just saw dinglemouse's comment at the very bottom of the discourse.

  • Default User Avatar

    Tests are incorrect.

    Missing getter for attribute state expected:<[on]> but was:<[Red]>

    Your testGetState(LampTest) retrives color instead of state

  • Default User Avatar

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

  • Default User Avatar

    This sample test is not correct. Should either be assertFalse or (6, 21)

    @Test
      public void testSix() {
        assertTrue(ikea.checkEnoughScrews(6, 20));
      }
    
  • Default User Avatar

    It seems to me that the correct answer for 111187777317L should be 78621631327L. It's less than 129858761425L, which is expected.

    (78621631327.00) / (111187777317.00) * ((78621631327.00 - 1.00) / (111187777317.00 - 1.00)) = 0.5

    Otherwise, I don't understand the description and the rules of this kata.

  • Default User Avatar

    randomTest is buggy, it never reaches the inner for loop, always producing 0.

    This line

    int a = (int) Math.random() * 2000; // Math.random() is casted to int and becomes 0, thereby making pointless its multiplying by 2000.
    

    Should be replaced with

    int a = (int) (Math.random() * 2000);
    
  • Default User Avatar

    Oh yes, I've forgotten about spaces! Regex to check against is corrected.

  • Default User Avatar

    I would expect "<>[]:,;@"!#$%&*+-/=?^_{}| ~.a"@example.org" to produce a false result. A bit confusing.

  • Default User Avatar

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

  • Loading more items...