What exactly does "no random tests" issue mean #3412
-
|
I got this as issue in https://www.codewars.com/kata/690b601fbaa640b5d75bbca4 What exactly do they mean? can't find anything related to it in documentation or kata guidelines. If they mean testcases shouldn't be randomly generated then what do they expect one to do? They weren't simply random they were carefully designed to generate till we get a good set of cases handling each kind of scenario so I don't see why it should be penalized, also if I have to check performance of code it should be expected to have large random tests, because you can't manually construct it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
Your tests should not only be randomly generated but generated inside the tests. As is, your current tests are only random as in https://xkcd.com/221/ random: https://docs.codewars.com/authoring/guidelines/submission-tests#random-tests
To elaborate, as is, a solution can simply hard code the expected results and pass your tests. |
Beta Was this translation helpful? Give feedback.

Your tests should not only be randomly generated but generated inside the tests. As is, your current tests are only random as in https://xkcd.com/221/ random:
https://docs.codewars.com/authoring/guidelines/submission-tests#random-tests
To elaborate, as is, a solution can simply hard code the expected results and pass your tests.