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/Hakyll/Web/Template | |
| parent | 43e78fcdc755adcac61b3d2f1645037d3eff8fbb (diff) | |
| download | hakyll-2db34f050aa250c4c11a35cb201cc1c7a28d083d.tar.gz | |
Move from test-framework to tasty
Diffstat (limited to 'tests/Hakyll/Web/Template')
| -rw-r--r-- | tests/Hakyll/Web/Template/Context/Tests.hs | 9 | ||||
| -rw-r--r-- | tests/Hakyll/Web/Template/Tests.hs | 8 |
2 files changed, 8 insertions, 9 deletions
diff --git a/tests/Hakyll/Web/Template/Context/Tests.hs b/tests/Hakyll/Web/Template/Context/Tests.hs index 5f77dad..f263391 100644 --- a/tests/Hakyll/Web/Template/Context/Tests.hs +++ b/tests/Hakyll/Web/Template/Context/Tests.hs @@ -6,22 +6,21 @@ module Hakyll.Web.Template.Context.Tests -------------------------------------------------------------------------------- -import Test.Framework (Test, testGroup) -import Test.Framework.Providers.HUnit (testCase) -import Test.HUnit (Assertion, (@=?)) +import Test.Tasty (TestTree, testGroup) +import Test.Tasty.HUnit (Assertion, testCase, (@=?)) -------------------------------------------------------------------------------- import Hakyll.Core.Compiler import Hakyll.Core.Identifier import Hakyll.Core.Provider -import Hakyll.Core.Store (Store) +import Hakyll.Core.Store (Store) import Hakyll.Web.Template.Context import TestSuite.Util -------------------------------------------------------------------------------- -tests :: Test +tests :: TestTree tests = testGroup "Hakyll.Core.Template.Context.Tests" [ testCase "testDateField" testDateField ] diff --git a/tests/Hakyll/Web/Template/Tests.hs b/tests/Hakyll/Web/Template/Tests.hs index 994d9ca..1f3b25d 100644 --- a/tests/Hakyll/Web/Template/Tests.hs +++ b/tests/Hakyll/Web/Template/Tests.hs @@ -6,9 +6,9 @@ module Hakyll.Web.Template.Tests -------------------------------------------------------------------------------- -import Test.Framework (Test, testGroup) -import Test.Framework.Providers.HUnit (testCase) -import Test.HUnit (Assertion, (@=?), (@?=)) +import Test.Tasty (TestTree, testGroup) +import Test.Tasty.HUnit (Assertion, testCase, (@=?), + (@?=)) -------------------------------------------------------------------------------- @@ -25,7 +25,7 @@ import TestSuite.Util -------------------------------------------------------------------------------- -tests :: Test +tests :: TestTree tests = testGroup "Hakyll.Core.Template.Tests" $ concat [ [ testCase "case01" $ test ("template.html.out", "template.html", "example.md") , testCase "case02" $ test ("strip.html.out", "strip.html", "example.md") |
