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.
Very nice one!
For those wondering, math used is actually very basic, dont overcomplicate it.
Yeah, I can see it now, it would not let me before hahaha.
I'm afraid same thing might be happening to many other Nim katas, though...
The proc "dotest" was ill placed so the tests seemed to succeed (nevertheless the solution failed at te end). Modified. Unfortunately it seems that there is a problem in your code.
All tests on Nim pass but I get this message
/workspace/solution_tests.nim(75, 15) Warning: Number of spaces around '..<' is not consistent [Spacing]
/workspace/solution_tests.nim(80, 15) Warning: Number of spaces around '..<' is not consistent [Spacing]
/workspace/solution_tests.nim(92, 21) Warning: Number of spaces around '..<' is not consistent [Spacing]
/workspace/solution_tests.nim(76, 21) Warning: Deprecated since v0.18.0; use 'rand' instead; random is deprecated [Deprecated]
/workspace/solution_tests.nim(79, 17) Warning: Deprecated since v0.18.0; use 'rand' instead; random is deprecated [Deprecated]
/workspace/solution_tests.nim(100, 7) template/generic instantiation of
suite
from here/workspace/solution_tests.nim(102, 34) Warning: Deprecated since v0.18.0; use 'rand' instead; random is deprecated [Deprecated]
Error: execution of an external program failed: '/workspace/tests '
Guapo
The proc "dotest" was at a wrong place. Modified. Your solution passes. Please give it a try! Thanks for your post.
Checks fail in Nim for some reason, check(false) is passed as a complete test but then it crashes