File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,9 @@ function transcode!(
122
122
codec:: Codec ,
123
123
input:: Buffer ,
124
124
)
125
- @assert ! Base. mightalias (input. data, output. data) " input and outbut buffers must be independent"
125
+ Base. mightalias (input. data, output. data) && error (
126
+ " input and outbut buffers must be independent"
127
+ )
126
128
unsafe_transcode! (output, codec, input)
127
129
end
128
130
Original file line number Diff line number Diff line change 192
192
data = UInt8[]
193
193
@test TranscodingStreams. unsafe_transcode! (Noop (), data, data) == data
194
194
data = [0x01 , 0x02 ]
195
- @test_throws AssertionError transcode (Noop (), data, data)
195
+ @test_throws ErrorException transcode (Noop (), data, data)
196
196
data = b ""
197
197
@test transcode (Noop (), data) == data
198
198
@test transcode (Noop (), data) != = data
You can’t perform that action at this time.
0 commit comments