From 18ab8642692caca2716fd9b5a0e6dbfd3d9cf9cc Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 4 Feb 2017 12:56:30 +0100 Subject: Moved tests/ -> test/. --- tests/Tests/Readers/HTML.hs | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 tests/Tests/Readers/HTML.hs (limited to 'tests/Tests/Readers/HTML.hs') diff --git a/tests/Tests/Readers/HTML.hs b/tests/Tests/Readers/HTML.hs deleted file mode 100644 index a1533e42a..000000000 --- a/tests/Tests/Readers/HTML.hs +++ /dev/null @@ -1,33 +0,0 @@ -{-# LANGUAGE OverloadedStrings #-} -module Tests.Readers.HTML (tests) where - -import Text.Pandoc.Definition -import Test.Framework -import Tests.Helpers -import Text.Pandoc.Arbitrary() -import Text.Pandoc.Builder -import Text.Pandoc - -html :: String -> Pandoc -html = purely $ readHtml def - -tests :: [Test] -tests = [ testGroup "base tag" - [ test html "simple" $ - "\"Stickman\"" =?> - plain (image "http://www.w3schools.com/images/stickman.gif" "" (text "Stickman")) - , test html "slash at end of base" $ - "\"Stickman\"" =?> - plain (image "http://www.w3schools.com/images/stickman.gif" "" (text "Stickman")) - , test html "slash at beginning of href" $ - "\"Stickman\"" =?> - plain (image "http://www.w3schools.com/stickman.gif" "" (text "Stickman")) - , test html "absolute URL" $ - "\"Stickman\"" =?> - plain (image "http://example.com/stickman.gif" "" (text "Stickman")) - ] - , testGroup "anchors" - [ test html "anchor without href" $ "" =?> - plain (spanWith ("anchor",[],[]) mempty) - ] - ] -- cgit v1.2.3