Skip to content

Commit

Permalink
Add test for #18213
Browse files Browse the repository at this point in the history
  • Loading branch information
martinholters committed Aug 25, 2016
1 parent f95b8b1 commit 9ff1f18
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/dict.jl
Original file line number Diff line number Diff line change
Expand Up @@ -555,3 +555,16 @@ let badKeys = UInt16[0xb800,0xa501,0xcdff,0x6303,0xe40a,0xcf0e,0xf3df,0xae99,0x9
end
end
end

# #18213
let olderr = STDERR
rderr = redirect_stderr()[1]
try
err = @async read(rderr)
Dict(1 => rand(2,3), 'c' => "asdf")
close(rderr)
@test String(wait(err)) == ""
finally
redirect_stderr(olderr)
end
end

0 comments on commit 9ff1f18

Please sign in to comment.