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.
TS 4.2 should be enabled
assert.strictEqual
should be usedNo need to compare actual and expected to string for comparison
it
blocks should be usedKata is now retired.
This comment is hidden because it contains spoiler information about the solution
One can solve the kata without cheating and make a true Quine, I/O is not necessary so I dont think this hint would be a good thing.
That easy?
UPD
See what you meant
Something may have changed in the interim, but the description is still claiming the sample tests include every operation, and they still do not test
in
.Also, I got failure messages "expected true to be a Boolean" from that ( I was returning a
Number
). Thatassert.isBoolean
may not work ( cq. give correct failure messages ) as expected.The tests aren't checking that the overriden operations return actually random values.
This is not a correct way to randomize the number of loop iterations. And the number of tests shouldn't be random at all, tbh.
What is this then?
Approved
Added assertion messages.
Resolved merge conflicts.
Removed the reference solution from sample tests.
Well, author has been here just a little too recently apparently...
alr approved some time ago
Duplicate of quine: https://www.codewars.com/kata/582949352c5d0a3dee000092/
Loading more items...