Skip to content

Commit 7c8c4a9

Browse files
committed
Test is_utf8_start is_utf8_continuation deprecations
1 parent 8d993ec commit 7c8c4a9

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

test/deprecated.jl

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,19 @@ if (Base.JLOptions()).depwarn > 1
55
@test_throws ErrorException Base.utf16_is_lead(0xd800)
66
@test_throws ErrorException Base.utf16_is_trail(0xdc00)
77
@test_throws ErrorException Base.utf16_get_supplementary(0xd800, 0xdc00)
8+
@test_throws ErrorException Base.is_utf8_start(0x40)
9+
@test_throws ErrorException Base.is_utf8_continuation(0x90)
810
else
911
olderr = STDERR
1012
try
1113
rd, wr = redirect_stderr()
12-
@test Base.utf16_is_surrogate(0xdc00) == true
13-
@test Base.utf16_is_lead(0xd800) == true
14-
@test Base.utf16_is_trail(0xdc00) == true
14+
@test Base.utf16_is_surrogate(0xdc00)
15+
@test Base.utf16_is_lead(0xd800)
16+
@test Base.utf16_is_trail(0xdc00)
1517
@test Base.utf16_get_supplementary(0xd800, 0xdc00) == 0x10000
18+
@test Base.is_utf8_start(0x40)
19+
@test Base.is_utf8_continuation(0x90)
1620
finally
1721
redirect_stderr(olderr)
1822
end
19-
end
23+
end

0 commit comments

Comments
 (0)