diff options
author | Josef Haider <4835525+djoooooe@users.noreply.github.com> | 2023-03-18 07:43:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-18 15:43:54 +0900 |
commit | 2c8f2871a8aeff592369a993b1d69557160cfa61 (patch) | |
tree | 867a961cbc27bdf7031c7a6bf81f21321980d442 /test | |
parent | 45a17013aae5ed050b0d425a2dab7cd4547ff359 (diff) | |
download | ruby-2c8f2871a8aeff592369a993b1d69557160cfa61.tar.gz |
Fix handling of 6-byte codepoints in left_adjust_char_head in CESU-8 encoding
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/enc/test_cesu8.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/enc/test_cesu8.rb b/test/ruby/enc/test_cesu8.rb index d9debe76cd..68a08389ea 100644 --- a/test/ruby/enc/test_cesu8.rb +++ b/test/ruby/enc/test_cesu8.rb @@ -106,4 +106,8 @@ EOT assert_equal chr, ord.chr("cesu-8") end end + + def test_cesu8_left_adjust_char_head + assert_equal("", "\u{10000}".encode("cesu-8").chop) + end end |