Skip to content

Commit 671a206

Browse files
kshyattKristofferC
authored andcommitted
Even MORE tests for transcode
1 parent 0c04457 commit 671a206

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/strings/basic.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1398,9 +1398,14 @@ end
13981398
str_2 = "αβγ"
13991399
# string starting with a 3 byte UTF-8 character
14001400
str_3 = "आख"
1401-
@testset for str in (str_1, str_2, str_3)
1401+
# string starting with a 4 byte UTF-8 character
1402+
str_4 = "𒃵𒃰"
1403+
@testset for str in (str_1, str_2, str_3, str_4)
1404+
@test transcode(String, str) === str
14021405
@test transcode(String, transcode(UInt16, str)) == str
14031406
@test transcode(String, transcode(UInt16, transcode(UInt8, str))) == str
1407+
@test transcode(String, transcode(Int32, transcode(UInt8, str))) == str
1408+
@test transcode(String, transcode(UInt32, transcode(UInt8, str))) == str
14041409
@test transcode(String, transcode(UInt8, transcode(UInt16, str))) == str
14051410
end
14061411
end

0 commit comments

Comments
 (0)