From 841f586fdc40844ca0129bf77a2a69367645b941 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 e2a719d893db9c..e0d3c2284d81ae 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",