4
4
5
5
module Regress (regressions ) where
6
6
7
- import qualified Test.Framework as F
7
+ import Test.Tasty ( TestTree , testGroup )
8
8
import Control.Monad (when )
9
- import Test.Framework.Providers.HUnit (testCase )
10
- import Test.HUnit (Assertion , assertFailure , (@?=) )
11
- import Test.Framework.Providers.QuickCheck2 (testProperty )
9
+ import Test.Tasty.HUnit (testCase , Assertion , assertFailure , (@?=) )
10
+ import Test.Tasty.QuickCheck (testProperty )
12
11
import GHC.Generics (Generic )
13
12
import Data.List (nub )
14
13
import Data.Fixed (Pico )
@@ -33,15 +32,15 @@ assertInequal msg x y
33
32
| x == y = assertFailure msg
34
33
| otherwise = return ()
35
34
36
- regressions :: [F. Test ]
35
+ regressions :: [TestTree ]
37
36
regressions = [] ++
38
37
#ifdef HAVE_MMAP
39
38
Mmap. regressions ++
40
39
[ testCase " Fixed" $ do
41
40
(hash (1 :: Pico ) == hash (2 :: Pico )) @?= False
42
41
] ++
43
42
#endif
44
- [ F. testGroup " Generic: sum of nullary constructors"
43
+ [ testGroup " Generic: sum of nullary constructors"
45
44
[ testCase " 0" $ nullaryCase 0 S0
46
45
, testCase " 1" $ nullaryCase 1 S1
47
46
, testCase " 2" $ nullaryCase 2 S2
@@ -72,7 +71,7 @@ regressions = [] ++
72
71
#endif
73
72
hash (" hello world" :: Text ) @?= expected
74
73
#endif
75
- , F. testGroup " concatenation"
74
+ , testGroup " concatenation"
76
75
[ testCase " String" $ do
77
76
let lhs, rhs :: (String , String )
78
77
lhs = (" foo" , " bar" )
0 commit comments