Skip to content

Commit 263776a

Browse files
committed
Use ISO-2022-JP instead of -3 in tests
Win32 APIs do not support the latter.
1 parent 7be5995 commit 263776a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/runtests.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ end
2121

2222
# Test that attempt to close stream in the middle of incomplete sequence throws
2323
# TODO: use more specific errors
24-
let s = "a string チャネルパートナーの選択"
24+
let s = "a string チャネルパートナーの選択"
2525
p = StringEncoder(IOBuffer(), "UTF-16LE")
2626
write(p, s.data[1:10])
2727
@test_throws ErrorException close(p)
@@ -32,10 +32,10 @@ let s = "a string € チャネルパートナーの選択"
3232

3333
# Test stateful encoding, which output some bytes on final reset
3434
# with strings containing different scripts
35-
x = encode(s, "ISO-2022-JP-3")
36-
@test decode(x, "ISO-2022-JP-3") == s
35+
x = encode(s, "ISO-2022-JP")
36+
@test decode(x, "ISO-2022-JP") == s
3737

38-
p = StringDecoder(IOBuffer(x), "ISO-2022-JP-3", "UTF-8")
38+
p = StringDecoder(IOBuffer(x), "ISO-2022-JP", "UTF-8")
3939
# Test that closed pipe behaves correctly
4040
close(p)
4141
@test eof(p)

0 commit comments

Comments
 (0)