Commit Graph

8 Commits

Author SHA1 Message Date
Jan Hrček
3bd2235c0c Fix some hlint warnings 2022-09-24 12:56:11 +02:00
Valentin Golev
b68310e740 renderWidget function 2022-07-01 04:02:27 +02:00
Willem Van Onsem
ddeb2fcb13
use fmap for Main tests 2021-03-15 21:19:22 +01:00
Fraser Tweedale
040f3dadb7 tests: add List properties
Add some property tests for List behaviour.  Among other things,
check that the "selected element" bookkeeping maintains a valid
selection at all times (as long as you're using the provided
functions and not manipulating the underlying Vector directly).
2018-12-07 08:56:21 +10:00
Fraser Tweedale
f46ac63c97 tests: exit with nonzero status when tests fail
The current 'main' has type 'IO Bool' but a return value of 'False'
does not cause the program to exit with nonzero status.  Witnessed
by the following:

  ftweedal% cat foo.hs
  main :: IO Bool
  main = putStrLn "goodbye world" *> pure False

  ftweedal% runhaskell foo.hs
  goodbye world

  ftweedal% echo $?
  0

This causes the cabal test suite to pass, even when there are
errors.  Unless you inspect the QuickCheck output carefully, you
might not notice that a test is failing.  Update 'main' to ensure
that we exit nonzero when quickCheckAll returns 'False'.
2018-12-05 21:20:15 +10:00
Daniel Wagner
11b7be5616 delete unused extension to fix tests on GHC 7.10 2018-03-25 22:32:52 -04:00
Daniel Wagner
ba69f6846a make test suite more obviously correct 2018-03-25 18:04:15 -04:00
Daniel Wagner
5dd5bc4100 add a way to join neighboring borders 2018-03-25 18:04:15 -04:00