Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
nalimilan committed Jan 11, 2016
1 parent 263776a commit 73f1b43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ catch err
"iconv error: byte sequence 0xc3a9e282ac is invalid in source encoding or cannot be represented in target encoding"
end

@test_throws ErrorException decode("qwertyé€".data, "ASCII")
@test_throws ErrorException decode("qwertyé€".data, "ISO-8859-1")
try
decode("qwertyé€".data, "ASCII")
decode("qwertyé€".data, "ISO-8859-1")
catch err
io = IOBuffer()
showerror(io, err)
@test takebuf_string(io) ==
"iconv error: byte sequence 0xc3a9e282ac is invalid in source encoding or cannot be represented in target encoding"
"iconv error: byte sequence 0xe282ac is invalid in source encoding or cannot be represented in target encoding"
end

mktemp() do p, io
Expand Down

0 comments on commit 73f1b43

Please sign in to comment.