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.
Great kata to solve, very funny to figure out.
Funny kata and nice series, congratulations.
That
()
did the trick. Thanks to you both.Yes this too, I did not mention this because I thought that the first thing to check would be the asynchronous invocation, and
this
binding is not really rerelevant in context of this specific question.Mocha official documentation warns against passing arrow functions to
it()
/describe()
, as they cannot access thethis
context. This is especially relevant for asynchronous tests.I am not at my laptop so I cannot run your code atm, but one thing which immediately caught my eye is that you use asynchronous tests without awaiting them. CW runner does not account for asynchronous test functions, you have to make your test functions argumentless.
_=>{...}
is not correct, it should be()=>{...}
. Or maybe you can make Mocha await for your tests by doingdone(_);
at the end of eachit
.I cannot remember if having tests in Solution breaks things, but it might. If possible, add your own test cases to Example tests editor.
I will be able to tell.more when i get to my laptop in the evening.
Sure, I have no
vars
, and put tests in the "Solution" box. But even moving these to "Example tests" box, produces this behavior. Here's a very simple snippet that already messes things up.Adding your own unit tests should not affect submission tests in any way, and the only thing which comes to my mind is that you do not add the tests in "Example tests" box, but you added them to the "Solution" box.
Another possibility is that some unfortunately placed
var
or implicit global in your solution or in tests breaks things.If you'd show the code with your additional tests (and without spoilers), I could take a look.
Is this kata preventing custom unit tests in Javascript? If I add my own unit tests, none of the existing test cases run, neither in sample tests, nor in submission tests :/
Tough. Learned a lot.
Java:
Missing fixed tests
JUnit5 should be used
Wish I had the vision
The right answer is 19. Description says that the 1st century is 1 to 100, so the 19th century is 1801 to 1900.
Man, that's a wonderfull kata!
About half an hour of a brainstorming and I've finally figured out how LZ78 works!!
Thanks, man! That's really not very hard but eventually you stand one more step closer to becoming a guru
Enabled in this fork
Loading more items...