Ad
  • Custom User Avatar

    Thank you everyone for the feedback. I had no intention to write a JS version, only java. I'm not really sure where the JS websites array came from...
    Any feedback on the java version would be great.

    Edit - big big thank you to Matt C for fixing whatever was in the JS to an actual Kata!

  • Custom User Avatar
  • Custom User Avatar

    or sexuality neutral :)

  • Custom User Avatar

    For a passed test:
    test2(RainfallTest) Fixed Tests: variance data Test Passed

    For a failed (?) test:
    test3(RainfallTest) Random Tests: mean data 10

  • Custom User Avatar

    Thank you for this comment, I was super confused by the results of the test cases in Java

  • Custom User Avatar

    You will need to manually include the appropriate import for the List class for this to compile in java

  • Custom User Avatar

    Hello, in Java I am getting the following feed back for some of the test cases (where I have printed the city, calculated mean and calculated variance for a sanity check):

    test4(RainfallTest)
    Random Tests: variance data
    Sydney mean: 101.85000000000001 variane: 483.1075000000001
    10

    It's not even saying that the test failed, it just saying "10". Does anyone have any ideas on what this means? thank you!

  • Custom User Avatar

    Thanks for the Kata!

    In java, the explanation for failing test cases is reversing the expected and received value:
    "should work for 5 expected:<9> but was:<27>"

  • Custom User Avatar

    The syntax formatting of the print statement is unclear in the description. As many people learn "Hello, World!" rather than "Hello World!" it would be helpful to include that in this kata a comma cannot be included. In java, including a comma gives the helpful error "Expected: But was: ". Thanks for the Kata!