2 ms·
If your tests are of the form `assert(complexFunction() == 42)` then the easiest way to make the test pass is just to return 42. The analogy in education is "
by pjc50 12y ago
If your tests are of the form
`assert(complexFunction() == 42)`
then the easiest way to make the test pass is just to return 42. The analogy in education is "teaching to the test". You can get people to recall small specific bits of information for the test without it actually being useful.