Skip to content

Commit 385220f

Browse files
committed
Ported rank1dynamic
1 parent 477d17c commit 385220f

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

packages/rank1dynamic/ChangeLog

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Unreleased
2+
3+
* Ported test suite to use `tasty` rather than `test-framework`.
4+
15
2024-09-03 Laurent P. René de Cotret <[email protected]> 0.4.2
26

37
* Bumped dependency bounds to support GHC 8.10.7 - GHC 9.10.1

packages/rank1dynamic/rank1dynamic.cabal

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Test-Suite TestRank1Dynamic
5050
Build-Depends: base >= 4.14 && < 5,
5151
HUnit >= 1.2 && < 1.7,
5252
rank1dynamic,
53-
test-framework >= 0.6 && < 0.9,
54-
test-framework-hunit >= 0.2.0 && < 0.4
55-
default-language: Haskell2010
53+
tasty >= 1.5 && <1.6,
54+
tasty-hunit >=0.10 && <0.11,
55+
default-language: Haskell2010
5656
HS-Source-Dirs: tests

packages/rank1dynamic/tests/test.hs

+4-5
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
import Data.Rank1Dynamic
33
import Data.Rank1Typeable
44

5-
import Test.Framework
6-
import Test.Framework.Providers.HUnit
7-
import Test.HUnit hiding (Test)
5+
import Test.Tasty
6+
import Test.Tasty.HUnit
87
import Unsafe.Coerce
98

109
funKindStr :: String
@@ -18,9 +17,9 @@ funKindStr = "(->)"
1817

1918

2019
main :: IO ()
21-
main = defaultMain tests
20+
main = defaultMain (testGroup "rank1dynamic" tests)
2221

23-
tests :: [Test]
22+
tests :: [TestTree]
2423
tests =
2524
[ testGroup "Examples of isInstanceOf"
2625
[ testCase "CANNOT use a term of type 'Int -> Bool' as 'Int -> Int'" $

0 commit comments

Comments
 (0)