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.
Lua translation!
It was not mentioned that the range is end-exclusive.
The function is named
howManyHappyNumbers
, but the expected answer ishappyNumbers
. Did you change your mind halfway through building this? :PThe third example test is incorrect. It asks for
happy(300)
but tests something likehappy(270)
.If you use
Test.assertDeepEquals
instead ofTest.assertSimilar
, wrap the tests in individualTest.it
s ( you can still embedn
in its text ) and all tests in aTest.describe
, you'll have a much cleaner Test result log.