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.
This comment is hidden because it contains spoiler information about the solution
That's a timeout with your code, not a kata issue. I've just tried TS version with my JS code and worked fine.
Hi, what is this? Solving in typescript
Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/workspace/default/test.ts) at processImmediate (node:internal/timers:471:21).
It seems more like error in test.
Regex ftw
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
"More tests" in javascript, actual and expected are flipped.
Why aren't they randonmly generated? It would be easier to fix than manually changing them all.
Whoever wrote the JavaScript testcases wrote the expected and the actual the wrong way around for the "More tests" section.
Testcases are written:
Test.assertEquals(actual, expected)
but they wroteTest.assertEquals(expected, actual)
e.g. they wrote
Test.assertEquals(false, ' '.digit());
.So, just switch what is expected and what your code is returning.
This comment is hidden because it contains spoiler information about the solution