aboutsummaryrefslogtreecommitdiff
path: root/test/Tests/Shared.hs.orig
diff options
context:
space:
mode:
authorYan Pas <yanp.bugz@gmail.com>2018-05-12 11:42:39 +0300
committerYan Pas <yanp.bugz@gmail.com>2018-05-12 11:42:39 +0300
commitb0b41cbbe6e316d63f196d8043b636a9050376fc (patch)
tree1226053cabecb78399fdc1bc3f28a224e55d34ba /test/Tests/Shared.hs.orig
parentad19166bc308a2428bd040851a2a97c76e8873f9 (diff)
parenta00ca6f0d8e83821d9be910f1eebf3d3cdd1170f (diff)
downloadpandoc-b0b41cbbe6e316d63f196d8043b636a9050376fc.tar.gz
Merge branch 'master' into groff_reader
Diffstat (limited to 'test/Tests/Shared.hs.orig')
-rw-r--r--test/Tests/Shared.hs.orig39
1 files changed, 0 insertions, 39 deletions
diff --git a/test/Tests/Shared.hs.orig b/test/Tests/Shared.hs.orig
deleted file mode 100644
index cc448419c..000000000
--- a/test/Tests/Shared.hs.orig
+++ /dev/null
@@ -1,39 +0,0 @@
-module Tests.Shared (tests) where
-
-import System.FilePath.Posix (joinPath)
-import Test.Tasty
-import Test.Tasty.HUnit (assertBool, testCase, (@?=))
-import Text.Pandoc.Arbitrary ()
-import Text.Pandoc.Builder
-import Text.Pandoc.Shared
-
-tests :: [TestTree]
-tests = [ testGroup "compactifyDL"
- [ testCase "compactifyDL with empty def" $
- assertBool "compactifyDL"
- (let x = [(str "word", [para (str "def"), mempty])]
- in compactifyDL x == x)
- ]
- , testGroup "collapseFilePath" testCollapse
- ]
-
-testCollapse :: [TestTree]
-testCollapse = map (testCase "collapse")
- [ collapseFilePath (joinPath [ ""]) @?= (joinPath [ ""])
- , collapseFilePath (joinPath [ ".","foo"]) @?= (joinPath [ "foo"])
- , collapseFilePath (joinPath [ ".",".","..","foo"]) @?= (joinPath [ joinPath ["..", "foo"]])
- , collapseFilePath (joinPath [ "..","foo"]) @?= (joinPath [ "..","foo"])
- , collapseFilePath (joinPath [ "","bar","..","baz"]) @?= (joinPath [ "","baz"])
- , collapseFilePath (joinPath [ "","..","baz"]) @?= (joinPath [ "","..","baz"])
- , collapseFilePath (joinPath [ ".","foo","..",".","bar","..",".",".","baz"]) @?= (joinPath [ "baz"])
- , collapseFilePath (joinPath [ ".",""]) @?= (joinPath [ ""])
- , collapseFilePath (joinPath [ ".",".",""]) @?= (joinPath [ ""])
- , collapseFilePath (joinPath [ "..",""]) @?= (joinPath [ ".."])
- , collapseFilePath (joinPath [ "..",".",""]) @?= (joinPath [ ".."])
- , collapseFilePath (joinPath [ ".","..",""]) @?= (joinPath [ ".."])
- , collapseFilePath (joinPath [ "..","..",""]) @?= (joinPath [ "..",".."])
- , collapseFilePath (joinPath [ "parent","foo","baz","..","bar"]) @?= (joinPath [ "parent","foo","bar"])
- , collapseFilePath (joinPath [ "parent","foo","baz","..","..","bar"]) @?= (joinPath [ "parent","bar"])
- , collapseFilePath (joinPath [ "parent","foo",".."]) @?= (joinPath [ "parent"])
- , collapseFilePath (joinPath [ "","parent","foo","..","..","bar"]) @?= (joinPath [ "","bar"])
- , collapseFilePath (joinPath [ "",".","parent","foo"]) @?= (joinPath [ "","parent","foo"])]