Skip to content

Commit 31dae88

Browse files
committed
Merge testsuites into one
1 parent 1f45d75 commit 31dae88

File tree

3 files changed

+29
-16
lines changed

3 files changed

+29
-16
lines changed

tests/Regressions.hs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{-# LANGUAGE ScopedTypeVariables #-}
22
{-# LANGUAGE MagicHash #-}
33
{-# LANGUAGE UnboxedTuples #-}
4-
module Main where
4+
module Regressions (tests) where
55

66
import Control.Exception (evaluate)
77
import Control.Monad (replicateM)
@@ -16,7 +16,7 @@ import System.Mem (performGC)
1616
import System.Mem.Weak (mkWeakPtr, deRefWeak)
1717
import System.Random (randomIO)
1818
import Test.HUnit (Assertion, assert)
19-
import Test.Tasty (TestTree, defaultMain, testGroup)
19+
import Test.Tasty (TestTree, testGroup)
2020
import Test.Tasty.HUnit (testCase)
2121
import Test.Tasty.QuickCheck (testProperty)
2222
import Test.QuickCheck
@@ -135,9 +135,3 @@ tests = testGroup "Regression tests"
135135
, testCase "issue254 lazy" issue254Lazy
136136
, testCase "issue254 strict" issue254Strict
137137
]
138-
139-
------------------------------------------------------------------------
140-
-- * Test harness
141-
142-
main :: IO ()
143-
main = defaultMain tests

tests/Strictness.hs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{-# LANGUAGE CPP, FlexibleInstances, GeneralizedNewtypeDeriving #-}
22
{-# OPTIONS_GHC -fno-warn-orphans #-}
33

4-
module Main (main) where
4+
module Strictness (tests) where
55

66
import Data.Hashable (Hashable(hashWithSalt))
77
import Test.ChasingBottoms.IsBottom
8-
import Test.Tasty (TestTree, defaultMain, testGroup)
8+
import Test.Tasty (TestTree, testGroup)
99
import Test.Tasty.QuickCheck (testProperty)
1010
import Test.QuickCheck (Arbitrary(arbitrary), Property, (===), (.&&.))
1111
import Test.QuickCheck.Function
@@ -175,12 +175,6 @@ tests = testGroup "Strictness tests"
175175
]
176176
]
177177

178-
------------------------------------------------------------------------
179-
-- * Test harness
180-
181-
main :: IO ()
182-
main = defaultMain tests
183-
184178
------------------------------------------------------------------------
185179
-- * Utilities
186180

unordered-containers.cabal

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,31 @@ test-suite strictness-properties
189189
ghc-options: -Wall
190190
cpp-options: -DASSERTS
191191

192+
test-suite unordered-containers-tests
193+
hs-source-dirs: tests
194+
main-is: Main.hs
195+
type: exitcode-stdio-1.0
196+
other-modules:
197+
Regressions
198+
Strictness
199+
200+
build-depends:
201+
base,
202+
ChasingBottoms,
203+
containers >= 0.4.2,
204+
hashable >= 1.0.1.1,
205+
HUnit,
206+
QuickCheck >= 2.4.0.1,
207+
random,
208+
tasty >= 1.4.0.3,
209+
tasty-hunit >= 0.10.0.3,
210+
tasty-quickcheck >= 0.10.1.2,
211+
unordered-containers
212+
213+
default-language: Haskell2010
214+
ghc-options: -Wall
215+
cpp-options: -DASSERTS
216+
192217
benchmark benchmarks
193218
hs-source-dirs: benchmarks
194219
main-is: Benchmarks.hs

0 commit comments

Comments
 (0)