diff options
author | Jasper Van der Jeugt <m@jaspervdj.be> | 2016-10-17 11:05:25 +0200 |
---|---|---|
committer | Jasper Van der Jeugt <m@jaspervdj.be> | 2016-10-17 11:05:25 +0200 |
commit | 2db34f050aa250c4c11a35cb201cc1c7a28d083d (patch) | |
tree | 380377956068c0bb0499dc5366249f9e1ff34458 /tests/TestSuite | |
parent | 43e78fcdc755adcac61b3d2f1645037d3eff8fbb (diff) | |
download | hakyll-2db34f050aa250c4c11a35cb201cc1c7a28d083d.tar.gz |
Move from test-framework to tasty
Diffstat (limited to 'tests/TestSuite')
-rw-r--r-- | tests/TestSuite/Util.hs | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/tests/TestSuite/Util.hs b/tests/TestSuite/Util.hs index e727ecb..35ee112 100644 --- a/tests/TestSuite/Util.hs +++ b/tests/TestSuite/Util.hs @@ -12,30 +12,29 @@ module TestSuite.Util -------------------------------------------------------------------------------- -import Data.List (intercalate) -import Data.Monoid (mempty) -import qualified Data.Set as S -import Test.Framework -import Test.Framework.Providers.HUnit -import Test.HUnit hiding (Test) -import Text.Printf (printf) +import Data.List (intercalate) +import Data.Monoid (mempty) +import qualified Data.Set as S +import Test.Tasty +import Test.Tasty.HUnit +import Text.Printf (printf) -------------------------------------------------------------------------------- import Hakyll.Core.Compiler.Internal import Hakyll.Core.Configuration import Hakyll.Core.Identifier -import qualified Hakyll.Core.Logger as Logger +import qualified Hakyll.Core.Logger as Logger import Hakyll.Core.Provider -import Hakyll.Core.Store (Store) -import qualified Hakyll.Core.Store as Store +import Hakyll.Core.Store (Store) +import qualified Hakyll.Core.Store as Store import Hakyll.Core.Util.File -------------------------------------------------------------------------------- fromAssertions :: String -- ^ Name -> [Assertion] -- ^ Cases - -> [Test] -- ^ Result tests + -> [TestTree] -- ^ Result tests fromAssertions name = zipWith testCase [printf "[%2d] %s" n name | n <- [1 :: Int ..]] |