File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -1392,8 +1392,15 @@ end
1392
1392
end
1393
1393
1394
1394
@testset " transcode" begin
1395
- str = " αβγ"
1396
- @test transcode (String, transcode (UInt16, str)) == str
1397
- @test transcode (String, transcode (UInt16, transcode (UInt8, str))) == str
1398
- @test transcode (String, transcode (UInt8, transcode (UInt16, str))) == str
1395
+ # string starting with an ASCII character
1396
+ str_1 = " zβγ"
1397
+ # string starting with a 2 byte UTF-8 character
1398
+ str_2 = " αβγ"
1399
+ # string starting with a 3 byte UTF-8 character
1400
+ str_3 = " आख"
1401
+ @testset for str in (str_1, str_2, str_3)
1402
+ @test transcode (String, transcode (UInt16, str)) == str
1403
+ @test transcode (String, transcode (UInt16, transcode (UInt8, str))) == str
1404
+ @test transcode (String, transcode (UInt8, transcode (UInt16, str))) == str
1405
+ end
1399
1406
end
You can’t perform that action at this time.
0 commit comments