Skip to content
Discussion options

You must be logged in to vote

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

The goal of random tests is to make the expected return values and their order unpredictable so that only solutions that are actually solving the task may pass.

To elaborate, as is, a solution can simply hard code the expected results and pass your tests.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@theabbie
Comment options

@theabbie
Comment options

@theabbie
Comment options

@theabbie
Comment options

Answer selected by theabbie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants