@@ -54,7 +54,7 @@ let s = "a string チャネルパートナーの選択", a = Vector{UInt8}(s)
54
54
@test isa (err, IncompleteSequenceError)
55
55
io = IOBuffer ()
56
56
showerror (io, err)
57
- @test takebuf_string (io ) == " Incomplete byte sequence at end of input"
57
+ @test String ( take! (io) ) == " Incomplete byte sequence at end of input"
58
58
end
59
59
60
60
b = IOBuffer (encode (s, " UTF-16LE" )[1 : 19 ])
86
86
catch err
87
87
io = IOBuffer ()
88
88
showerror (io, err)
89
- @test takebuf_string (io ) ==
89
+ @test String ( take! (io) ) ==
90
90
" Byte sequence 0xc3a9e282ac is invalid in source encoding or cannot be represented in target encoding"
91
91
end
92
92
96
96
catch err
97
97
io = IOBuffer ()
98
98
showerror (io, err)
99
- @test takebuf_string (io ) ==
99
+ @test String ( take! (io) ) ==
100
100
" Byte sequence 0xc3a9e282ac is invalid in source encoding or cannot be represented in target encoding"
101
101
end
102
102
@@ -107,7 +107,7 @@ let x = encode("ÄÆä", "ISO-8859-1")
107
107
catch err
108
108
io = IOBuffer ()
109
109
showerror (io, err)
110
- @test takebuf_string (io ) ==
110
+ @test String ( take! (io) ) ==
111
111
" Byte sequence 0xc4c6e4 is invalid in source encoding or cannot be represented in target encoding"
112
112
end
113
113
end
@@ -128,7 +128,7 @@ catch err
128
128
@test isa (err, InvalidEncodingError)
129
129
io = IOBuffer ()
130
130
showerror (io, err)
131
- @test takebuf_string (io ) ==
131
+ @test String ( take! (io) ) ==
132
132
" Conversion from absurd_encoding to nonexistent_encoding not supported by iconv implementation, check that specified encodings are correct"
133
133
end
134
134
try
@@ -137,7 +137,7 @@ catch err
137
137
@test isa (err, InvalidEncodingError)
138
138
io = IOBuffer ()
139
139
showerror (io, err)
140
- @test takebuf_string (io ) ==
140
+ @test String ( take! (io) ) ==
141
141
" Conversion from nonexistent_encoding to absurd_encoding not supported by iconv implementation, check that specified encodings are correct"
142
142
end
143
143
189
189
# # Test encodings support
190
190
b = IOBuffer ()
191
191
show (b, enc " UTF-8" )
192
- @test takebuf_string (b ) == " UTF-8 string encoding"
192
+ @test String ( take! (b) ) == " UTF-8 string encoding"
193
193
@test string (enc " UTF-8" ) == " UTF-8"
194
194
195
195
encodings_list = encodings ()
0 commit comments