Skip to content

Commit f79b5cc

Browse files
committed
Avoid using internal .data to get string as Vector{UInt8}, instead directly get Vector{UInt8} using b"..." string macro.
1 parent 47cb653 commit f79b5cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/runtests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ end
6161
# win_iconv currently does not throw an error on bytes >= 0x80 in ASCII sources
6262
# https://github.com/win-iconv/win-iconv/pull/26
6363
if OS_NAME != :Windows
64-
@test_throws ErrorException decode("qwertyé€".data, "ASCII")
64+
@test_throws ErrorException decode(b"qwertyé€", "ASCII")
6565
try
66-
decode("qwertyé€".data, "ASCII")
66+
decode(b"qwertyé€", "ASCII")
6767
catch err
6868
io = IOBuffer()
6969
showerror(io, err)

0 commit comments

Comments
 (0)