link:addition/Addition.hs[role=include]
link:morsecode/test/Spec.hs[role=include]
I have morsecode
instead of morse
and loadding tests is stack ghci morsecode:morsecode-test
link:wordnumber/test/Spec.hs[role=include]
Caution
|
had to use Test.QuickCheck.Function in point 8 to make it work
|
Run tests: stack test
-
propHalf
+++ OK, passed 100 tests.
-
propSort
+++ OK, passed 100 tests.
-
plusAssociative
+++ OK, passed 100 tests.
plusCommutative
+++ OK, passed 100 tests.
-
multiAssociative
+++ OK, passed 100 tests.
multiCommutative
+++ OK, passed 100 tests.
-
propQuotRem
+++ OK, passed 100 tests.
propDivMod
+++ OK, passed 100 tests.
-
powerAssociative
*** Failed! Falsifiable (after 1 test): 0 0 0
powerCommutative
*** Failed! Falsifiable (after 2 tests): 1 0
-
propReverse
+++ OK, passed 100 tests.
-
applyProp
+++ OK, passed 100 tests.
composeProp
+++ OK, passed 100 tests.
-
inConcatProp
*** Failed! Falsifiable (after 2 tests and 2 shrinks): "a" "b"
concatProp
+++ OK, passed 100 tests.
-
lenTakeProb
*** Failed! Falsifiable (after 3 tests and 1 shrink): 2 ""
-
idProp
+++ OK, passed 100 tests.
link:usingquickcheck/test/Spec.hs[role=include]
Floating point precission cannot guarantee equality
link:ch14_14.7_failure.hs[role=include]
*Main> main *** Failed! Falsifiable (after 2 tests and 1037 shrinks): 2.225078033262077e-308
link:ch14_14.7_indepotence.hs[role=include]
+++ OK, passed 100 tests. +++ OK, passed 100 tests.
Warning
|
not done, will have to come back to this later |
link:ch14_14.7_hangman.hs[role=include]