Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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!
I like it!
or sexuality neutral :)
For a passed test:
test2(RainfallTest) Fixed Tests: variance data Test Passed
For a failed (?) test:
test3(RainfallTest) Random Tests: mean data 10
Thank you for this comment, I was super confused by the results of the test cases in Java
You will need to manually include the appropriate import for the List class for this to compile in java
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!
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>"
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!