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.
Rejected for using outdated language version.
Forking is still possible, so no work is necessarily lost.
You forgot to adjust the sample tests. But I fixed this. Approved.
Thanks for the information.
Edit applied.
kazk fixed issue 274 so now you can create a top level
enum
in Preloaded.Forked and solved most listed issues.
Also preloaded an enum with all the weather types. (existing C translation does this as well, so I don't know if proper string comparisons are supposed to be part of this kata or not)
Rejecting due to open issues (see below), but this translation can simply be forked with fixes and improvements.
Please implement the following improvements:
ArrayList
,List
, andRandom
from solution and Sample tests0
in solution setup to make it compile@Tag
by@DisplayName
and use proper English with spaces as labelsRandom
instance for every random number. Either store instance in a private field or usejava.util.concurrent.ThreadLocalRandom.current()
private
, especially the reference solution.getRandomWeatherArray
method. Extract the single test run into a separate method and call it with the arguments.testListCopy
. You can just create two arrays from one List and they both will be copies and have no connection to each other. Or since you are creating the assertion message upfront you could just use one array.JavaScript update version
Java_Translation translation added!