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.
:)))))
I think you should read the docs about authoring. ;)
https://docs.codewars.com/authoring/guidelines/submission-tests/#random-tests
You can try, creating different bunch of random tests with different ranges.
can i use my completed code for the solution and create a loop for 100 or more random test?
can i use my completed code for the solution and create a loop for 100 or more random test?
just do 50-100 of them.
You could add
@test.it(f"testing num = {rnd}")
before each test to give the input to the user, but I think that requires you to make a different function for each test.Note this would not fix the first issue. I think random tests should be redesigned, 6 random tests is not enough (the norm is 100, though it can vary depending on the task).
What must i do? Does just removing
@test.it('Example Test Case')
above random test solve this issue?I add a line to kata's description to solve it!
Thank ypu
@test.it('Example Test Case')
is supposed to hold the examples contained in the description, not the random testsWhat should I do if there are more than one set of numbers that can be the solution?
For example:
60
can get15, 20, 25
and10, 24, 26
I check the solution for 5 seconds time limit and it pass all the test, but as you say I increase the limit to 10 seconds.
3 more random test added :)
I add
from solution import sum_of_sides
in both
Of course, I am so stupid about that! I change the variable name to num, Thanks a lot
Loading more items...