Skip to content

Commit f3aa142

Browse files
authored
ch9 - tests - cross platform path separators (#428)
* ch9 - tests cross platform path separators make tests pass on Windows * remove needless path separator
1 parent 4a7a923 commit f3aa142

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exercises/chapter9/test/Main.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ This line should have been automatically deleted by resetSolutions.sh. See Chapt
8585
test "missing" do
8686
absolutePath <- realpath $ Path.concat [ inDir ]
8787
chars <- countCharacters $ Path.concat [ absolutePath, "foof.txt" ]
88-
Assert.equal (Left ("ENOENT: no such file or directory, open '" <> absolutePath <> "/foof.txt'")) $ lmap message chars
88+
Assert.equal (Left ("ENOENT: no such file or directory, open '" <> absolutePath <> Path.sep <> "foof.txt'")) $ lmap message chars
8989
test "writeGet" do
9090
let
9191
outFile = Path.concat [ outDir, "user.txt" ]
@@ -131,7 +131,7 @@ This line should have been automatically deleted by resetSolutions.sh. See Chapt
131131
Assert.equal (Set.fromFoldable expected) $ Set.fromFoldable actualRelative
132132
test "one file" do
133133
let
134-
file = Path.concat [ recurseDir, "c/unused.txt" ]
134+
file = Path.concat [ recurseDir, "c", "unused.txt" ]
135135

136136
expected = [ file ]
137137
actual <- recurseFiles file

0 commit comments

Comments
 (0)