summaryrefslogtreecommitdiff
path: root/tests/Hakyll/Core/Identifier/Tests.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Hakyll/Core/Identifier/Tests.hs')
-rw-r--r--tests/Hakyll/Core/Identifier/Tests.hs10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/Hakyll/Core/Identifier/Tests.hs b/tests/Hakyll/Core/Identifier/Tests.hs
index 5c318e7..a5de85a 100644
--- a/tests/Hakyll/Core/Identifier/Tests.hs
+++ b/tests/Hakyll/Core/Identifier/Tests.hs
@@ -6,8 +6,8 @@ module Hakyll.Core.Identifier.Tests
--------------------------------------------------------------------------------
-import Test.Framework (Test, testGroup)
-import Test.HUnit ((@=?))
+import Test.Tasty (TestTree, testGroup)
+import Test.Tasty.HUnit ((@=?))
--------------------------------------------------------------------------------
@@ -17,7 +17,7 @@ import TestSuite.Util
--------------------------------------------------------------------------------
-tests :: Test
+tests :: TestTree
tests = testGroup "Hakyll.Core.Identifier.Tests" $ concat
[ captureTests
, matchesTests
@@ -25,7 +25,7 @@ tests = testGroup "Hakyll.Core.Identifier.Tests" $ concat
--------------------------------------------------------------------------------
-captureTests :: [Test]
+captureTests :: [TestTree]
captureTests = fromAssertions "capture"
[ Just ["bar"] @=? capture "foo/**" "foo/bar"
, Just ["foo/bar"] @=? capture "**" "foo/bar"
@@ -46,7 +46,7 @@ captureTests = fromAssertions "capture"
--------------------------------------------------------------------------------
-matchesTests :: [Test]
+matchesTests :: [TestTree]
matchesTests = fromAssertions "matches"
[ True @=? matches (fromList ["foo.markdown"]) "foo.markdown"
, False @=? matches (fromList ["foo"]) (setVersion (Just "x") "foo")