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.
Actual & Expected are flipped in the random test.
test.assert_approx_equals
Please use random values for the random tests.
Rejected, since issue already resolved.
Diff --> this line added to the description.
Rejected, merge conflict & author changed the description without approving this fork.
Have 2 consolation upvotes for the effort instead. 🙂
Approved
Fixed in your fork.
Approved.
Nice! Two more things.
Actual & expected are swapped in the random test
This is not test breaking, but you can simplify the random test by using
_.sample
instead (Lodash ref)Already approved by someone
Should use
mocha
(describe + it) &chai
(assert.strictEqual) instead of the deprecated Codewars Test framework (Test.expect).You can look at the Authoring Examples to see the modern way to structure the tests.
Fixed in this fork
This comment is hidden because it contains spoiler information about the solution
Removed unnecessary random seeding in the test (See this issue)
Enabled Python 3.11
This warning is only present in Crystal 0.34 (link to fork), but not in the current version (Crystal 1.0).
Crystal 0.34.0 - Exhaustive Case
Crystal 0.35.0 - Exhaustive Case (take 2)
Resolving...
This comment is hidden because it contains spoiler information about the solution
Loading more items...