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.
approved
Fixed :)
todo!()
to the solution setup so it compiles as-isassert_eq
is redundantly noisy. You could switch it out forassert!(actual == expected, /* msg */)
for more concise test output.array.map
is inefficient, especially if all you want is to unpack the resulting collection. You could alternatively do something like this:Cheers
You're supposed to check if there are exactly two positive numbers.
Please read the description. It's one line; you should be able to do that.
That test is correct.
"twoArePositive": Test case is buged returning:
(4, 6, 10): expected true to equal false
Clearly all numbers are positive but they expect false please correct the wrong test case.
Please read the description.
Why 4 6 10 == false?!
Rust translation
This comment is hidden because it contains spoiler information about the solution