File tree Expand file tree Collapse file tree 3 files changed +128
-161
lines changed Expand file tree Collapse file tree 3 files changed +128
-161
lines changed Original file line number Diff line number Diff line change @@ -62,3 +62,15 @@ module Examples where
62
62
test " parseRelDir - empty string" (parseRelDir "") (Just $ currentDir )
63
63
64
64
test " parseRelFile - image.png" (parseRelFile "image .png ") (Just $ file "image .png ")
65
+
66
+ test " parseRelFile - ./image.png" (parseRelFile "./image .png ") (Just $ file "image .png ")
67
+
68
+ test " parseRelFile - foo/image.png" (parseRelFile "foo /image .png ") (Just $ dir "foo " </> file "image .png ")
69
+
70
+ trace $ parsePath show show show show " ./foo/bar/"
71
+
72
+ test " parseRelDir - foo/" (parseRelDir "foo /") (Just $ dir "foo ")
73
+
74
+ test " parseRelDir - foo/bar" (parseRelDir "foo /bar /") (Just $ dir "foo " </> dir "bar ")
75
+
76
+ test " parseRelDir - ./foo/bar" (parseRelDir "./foo /bar /") (Just $ dir "foo " </> dir "bar ")
You can’t perform that action at this time.
0 commit comments