Skip to content

Commit b561132

Browse files
committed
Add test for invalid encoding identifiers
1 parent 49fc427 commit b561132

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/runtests.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,6 @@ mktemp() do p, io
6868
close(io)
6969
@test readall(p, "CP1252") == s
7070
end
71+
72+
@test_throws ErrorException p = StringEncoder(IOBuffer(), "nonexistent_encoding")
73+
@test_throws ErrorException p = StringDecoder(IOBuffer(), "nonexistent_encoding")

0 commit comments

Comments
 (0)