Skip to content

Commit

Permalink
Fix test breakage due to c3e9059.
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKarpinski committed Jul 10, 2011
1 parent d54fce0 commit f9e1dbe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions j/string.j
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ function print_escaped(s::String, esc::String)
end
end

escape_string(s::String) = print_to_string(length(s), print_escaped, s, "\"")
print_quoted(s::String) = (print('"'); print_escaped(s, "\"\$"); print('"'))
quote_string(s::String) = print_to_string(length(s)+2, print_quoted, s)

Expand Down
1 change: 0 additions & 1 deletion test/tests.j
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,6 @@ end
for i = 0:0x7f, p = {"","\0","x","xxx","\x7f","\uFF","\uFFF",
"\uFFFF","\U10000","\U10FFF","\U10FFFF"}
println("i=$i p=$(shown(p))")
c = char(i)
cp = strcat(c,p)
op = strcat(char(div(i,8)), oct(i%8), p)
Expand Down

0 comments on commit f9e1dbe

Please sign in to comment.