Skip to content

Commit

Permalink
fix repr test in io.jl for backslash character
Browse files Browse the repository at this point in the history
  • Loading branch information
digital-carver committed May 27, 2018
1 parent 2c1bbf8 commit 8f18eb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/strings/io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 8f18eb1

Please sign in to comment.