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.
Oh I get it - I reduced the max age in the random number test to 20 so there should be more
false
outcomes, upped it to 100 tests, hopefully that should make it harder to fool.Thanks for the feedback! Learning a lot about test environments
Random tests expect
true
too often, a solution that always returnstrue
usually passes all 10 random tests (and can still pass with 50 tests).No need to feel embrarrased, that's part of learning ~~ You can read more info here && how to write tests
Put a few more in, are you saying that random tests are normally configured so they expect a true result (instead of what i've done), or that my random tests expect true too often? Sorry I'm not quite sure what you mean
argh thank you this is super embarrassing
There's still one more in the last third line of test cases (random tests)
whoops, thanks again
You need to do it for the random tests too + sample tests
thanks, did this!
assert.strictEqual
should be used insteadtrue
.Sorted, cheers
Sorted!
Still figuring out how to do that, gonna unpublish until I've worked it out, thanks for the feedback!
Still figuring out how to do that, gonna unpublish until I've worked it out, thanks for the feedback!
Loading more items...