Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC committed Oct 7, 2016
1 parent a077906 commit 180ec60
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/repl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -532,3 +532,13 @@ if !is_windows() || Sys.windows_version() >= Sys.WINDOWS_VISTA_VER
@test readstring(outs) == "1\n"
end
end # let exename

# Test containers in error messages are limited #18726
let io = IOBuffer()
REPL.display_error(io,
try [][trues(6000)]
catch e
e
end, [])
@test length(takebuf_string(io)) < 1500
end

0 comments on commit 180ec60

Please sign in to comment.