@@ -95,8 +95,10 @@ runTest path flags = do
95 (_, output, _) <- readCreateProcessWithExitCode run ""
95 (_, output, _) <- readCreateProcessWithExitCode run ""
96 writeFile (path </> "output") (normalise output)
96 writeFile (path </> "output") (normalise output)
98− -- Normalise paths e.g. ".\foo.idr" to "./foo.idr".
98+ -- Normalise paths e.g. '.\foo.idr' to './foo.idr'.
99+ -- Also embedded paths e.g. ".\\Prelude\\List.idr" to "./Prelude/List.idr".
99 normalise ('.' : '\\' : c : xs) | isLetter c = '.' : '/' : c : normalise xs
100 normalise ('.' : '\\' : c : xs) | isLetter c = '.' : '/' : c : normalise xs
101+ normalise ('\\':'\\':xs) = '/' : normalise xs
100 normalise (x : xs) = x : normalise xs
102 normalise (x : xs) = x : normalise xs
101 normalise [] = []
103 normalise [] = []