From f68b0f8ffaf19d6fa7fdb29b9d4ac5ca2c49b8de Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Tue, 17 Apr 2018 12:30:54 +0200 Subject: [PATCH] fix file separator for AV tests --- test/runtests.jl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index 0871883..39514a8 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -192,7 +192,9 @@ content = """ https://nbviewer.jupyter.org/github/fredrikekre/Examples.jl/blob/gh-pages/v1.2.0/ """ - @test read(joinpath(outdir, "inputfile.jl"), String) == expected_script + script = read(joinpath(outdir, "inputfile.jl"), String) + script = replace(script, "\\" => "/") # normalize \ to / on Windows + @test script == expected_script # no tag -> latest directory withenv("TRAVIS_REPO_SLUG" => "fredrikekre/Examples.jl", @@ -280,7 +282,9 @@ end ``` """ - @test read(joinpath(outdir, "inputfile.md"), String) == expected_markdown + markdown = read(joinpath(outdir, "inputfile.md"), String) + markdown = replace(markdown, "\\" => "/") # normalize \ to / on Windows + @test markdown == expected_markdown # no tag -> latest directory withenv("TRAVIS_REPO_SLUG" => "fredrikekre/Examples.jl",