When people start with property-based testing, the very first mistake they make is reimplementing the function, in the exact same way, twice. Do we have a name for this?
-
Show this thread
-
e.g. isEven x = x `mod` 2 == 0 forAll (\x -> isEven x == (x `mod` 2 == 0))
5 replies 0 retweets 13 likesShow this thread
Replying to @puffnfresh
This example is a consequence of Bool though, instead of expressing algebraic properties. See also: Rice's Theorem
10:46 PM - 27 Apr 2021
0 replies
0 retweets
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.