File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -114,22 +114,22 @@ end
114
114
@test_throws InvalidEncodingError p = StringDecoder (IOBuffer (), " nonexistent_encoding" )
115
115
116
116
try
117
- p = StringEncoder (IOBuffer (), " nonexistent_encoding" )
117
+ p = StringEncoder (IOBuffer (), " nonexistent_encoding" , " absurd_encoding " )
118
118
catch err
119
119
@test isa (err, InvalidEncodingError)
120
120
io = IOBuffer ()
121
121
showerror (io, err)
122
122
@test takebuf_string (io) ==
123
- " Conversion from UTF-8 to nonexistent_encoding not supported by iconv implementation, check that specified encodings are correct"
123
+ " Conversion from absurd_encoding to nonexistent_encoding not supported by iconv implementation, check that specified encodings are correct"
124
124
end
125
125
try
126
- p = StringDecoder (IOBuffer (), " nonexistent_encoding" )
126
+ p = StringDecoder (IOBuffer (), " nonexistent_encoding" , " absurd_encoding " )
127
127
catch err
128
128
@test isa (err, InvalidEncodingError)
129
129
io = IOBuffer ()
130
130
showerror (io, err)
131
131
@test takebuf_string (io) ==
132
- " Conversion from nonexistent_encoding to UTF-8 not supported by iconv implementation, check that specified encodings are correct"
132
+ " Conversion from nonexistent_encoding to absurd_encoding not supported by iconv implementation, check that specified encodings are correct"
133
133
end
134
134
135
135
mktemp () do path, io
You can’t perform that action at this time.
0 commit comments