From 8f18eb101fed842397300a52d49589235368d81f Mon Sep 17 00:00:00 2001 From: SundaraRaman R Date: Thu, 24 May 2018 18:39:35 +0530 Subject: [PATCH] fix repr test in io.jl for backslash character --- test/strings/io.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/strings/io.jl b/test/strings/io.jl index e2a719d893db9..e0d3c2284d81a 100644 --- a/test/strings/io.jl +++ b/test/strings/io.jl @@ -75,7 +75,7 @@ local str = string(ch, cx[j,2]) @test str == unescape_string(escape_string(str)) end - @test repr(ch) == "'$(isprint(ch) ? ch : st)'" + @test repr(ch) == "'$(isprint(ch) && ch != '\\' ? ch : st)'" end for i = 0:0x7f, p = ["","\0","x","xxx","\x7f","\uFF","\uFFF",