File tree 2 files changed +15
-11
lines changed
2 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -94,5 +94,7 @@ test-suite unit-tests
94
94
unordered-containers,
95
95
unix-compat,
96
96
hashable,
97
+ test-framework,
98
+ test-framework-hunit,
97
99
bytestring
98
100
Ghc-options : -Wall -fno-warn-unused-do-bind
Original file line number Diff line number Diff line change @@ -20,19 +20,21 @@ import System.Directory
20
20
import System.Environment
21
21
import System.FilePath
22
22
import System.IO
23
- import Test.HUnit
23
+ import Test.Framework
24
+ import Test.Framework.Providers.HUnit
25
+ import Test.HUnit hiding (Test )
24
26
25
27
main :: IO ()
26
- main = runTestTT tests >> return ()
27
-
28
- tests :: Test
29
- tests = TestList
30
- [ " load" ~: loadTest
31
- , " types" ~: typesTest
32
- , " interp" ~: interpTest
33
- , " scoped-interp" ~: scopedInterpTest
34
- , " import" ~: importTest
35
- , " reload" ~: reloadTest
28
+ main = defaultMain tests
29
+
30
+ tests :: [ Test ]
31
+ tests =
32
+ [ testCase " load" loadTest
33
+ , testCase " types" typesTest
34
+ , testCase " interp" interpTest
35
+ , testCase " scoped-interp" scopedInterpTest
36
+ , testCase " import" importTest
37
+ , testCase " reload" reloadTest
36
38
]
37
39
38
40
withLoad :: FilePath -> (Config -> IO () ) -> IO ()
You can’t perform that action at this time.
0 commit comments