Random tests expected and actual values are flipped.
since the duration depends on the randomly positioned initial setup increasing the numer of tests could lead to lots of timeouts for the person solving.
Range -3, 3 otherwise the answer would always be 2.
Brute forcing has been made more difficault.
This comment is hidden because it contains spoiler information about the solution
Actual and Expected are in the wrong order.
11 should equal 'foo'
The function name should use kebab-case.
Incorrect function name in the initial solution.
The final tests should have fixed test cases too.
Function name fixed in the fork below.
To me the message looks like that crap spit out by Criterion assertions macros, but if Clojure people say it's okay, then okay it is! ;)
The message looks good to me.
The function name should be positive-sum.
expected: (= (positiveSum a) expected)
actual: (not (= -36 71))
Is it idiomatic to Clojure, or could it be something like "Expected 71, got -36"?
Falsifiable (after 5 tests and 3 shrinks):
"1" expected "" but got "1"
thanks, there was a (ns kata) missing in the solution setup.
added it in this fork