setting up property tests
I've got a little project, based off of fizzbuzz, that I would like to write property tests for using either QuickCheck or SmallCheck. Could someone have a look at https://github.com/mlitchard/fizzbuzzfib/blob/master/src/FizzBuzz.hs and help me sort out how to write property tests?
Hi. Are you struggling with getting a setup itself or with examples of test-cases which would test your code well? If former -- I suggest looking at framework called "tasty". Its readme has full working example of both quick- and smallcheck. Cheers. 8 груд. 2015 4:53 пп "Michael Litchard" <michael@schmong.org> пише:
I've got a little project, based off of fizzbuzz, that I would like to write property tests for using either QuickCheck or SmallCheck. Could someone have a look at https://github.com/mlitchard/fizzbuzzfib/blob/master/src/FizzBuzz.hs and help me sort out how to write property tests?
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
participants (2)
-
Kostiantyn Rybnikov -
Michael Litchard