From 2db34f050aa250c4c11a35cb201cc1c7a28d083d Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Mon, 17 Oct 2016 11:05:25 +0200 Subject: Move from test-framework to tasty --- tests/Hakyll/Web/Html/RelativizeUrls/Tests.hs | 7 ++++--- tests/Hakyll/Web/Html/Tests.hs | 8 ++++---- 2 files changed, 8 insertions(+), 7 deletions(-) (limited to 'tests/Hakyll/Web/Html') diff --git a/tests/Hakyll/Web/Html/RelativizeUrls/Tests.hs b/tests/Hakyll/Web/Html/RelativizeUrls/Tests.hs index 4d9421e..658145d 100644 --- a/tests/Hakyll/Web/Html/RelativizeUrls/Tests.hs +++ b/tests/Hakyll/Web/Html/RelativizeUrls/Tests.hs @@ -6,8 +6,9 @@ module Hakyll.Web.Html.RelativizeUrls.Tests -------------------------------------------------------------------------------- -import Test.Framework (Test, testGroup) -import Test.HUnit ((@=?)) +import Test.Tasty (TestTree, testGroup) +import Test.Tasty.HUnit ((@=?)) + -------------------------------------------------------------------------------- import Hakyll.Web.Html.RelativizeUrls @@ -15,7 +16,7 @@ import TestSuite.Util -------------------------------------------------------------------------------- -tests :: Test +tests :: TestTree tests = testGroup "Hakyll.Web.Html.RelativizeUrls.Tests" $ fromAssertions "relativizeUrls" [ "bar" @=? diff --git a/tests/Hakyll/Web/Html/Tests.hs b/tests/Hakyll/Web/Html/Tests.hs index bad5ebc..efb4099 100644 --- a/tests/Hakyll/Web/Html/Tests.hs +++ b/tests/Hakyll/Web/Html/Tests.hs @@ -5,9 +5,9 @@ module Hakyll.Web.Html.Tests -------------------------------------------------------------------------------- -import Data.Char (toUpper) -import Test.Framework (Test, testGroup) -import Test.HUnit (assert, (@=?)) +import Data.Char (toUpper) +import Test.Tasty (TestTree, testGroup) +import Test.Tasty.HUnit (assert, (@=?)) -------------------------------------------------------------------------------- @@ -16,7 +16,7 @@ import TestSuite.Util -------------------------------------------------------------------------------- -tests :: Test +tests :: TestTree tests = testGroup "Hakyll.Web.Html.Tests" $ concat [ fromAssertions "demoteHeaders" [ "

A h1 title

" @=? -- cgit v1.2.3