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.
Assume that you creating string from 10 random characters.
The chance of generating this string is 1 / 10 ** 6 = 0.000001 = 0.0001 %.
So we have 3000 test cases. As you see, the chance of generating two exactly equal strings is less then 1 %.
It will be better to make user use two functions: one to generate string and other to check if there is already such string and calling string generator untill new uniqeu string will be created.
So you can simulate the string to validator function if the string already was.
The "eye array" tests are not random, and they cannot be random considering all rows are guaranteed to be Pareto-optimal.
Tests are not using
describe
andit
blocks correctly.no longer
https://www.codewars.com/kata/reviews/614e7711943f130001d0ae5d/groups/615d633012fd840001a0c064
@test.it(f"testing for random table:\n{rand_table}")
logsrand_table
after it was (possibly) modified by user making it useless. And the whole idea of making test headers like this:is ridiculous.
I have not checked it fully, but at first sight, it would be good to have groups of random tests of various size ranges. Small random tests are helpful for debugging.
is everything okay now?
It's "coffee" and "hot chocolate", not "coffe" and "chocolate".
The text in the code blocks representing tables is all crooked.
The
borda_count(table_1) == {'a'}
line should be removed from sample and final tests.Loading more items...