Skip to content

Commit 5ea8bd3

Browse files
authored
Merge pull request rails#54802 from yahonda/diag54794
Address MultibyteCharsExtrasTest#test_should_compute_grapheme_lengthfailure with Ruby 3.5.0dev
2 parents 98892a2 + d064be8 commit 5ea8bd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activesupport/test/multibyte_chars_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ def test_should_compute_grapheme_length
599599
["", 0],
600600
["abc", 3],
601601
["こにちわ", 4],
602-
[[0x0924, 0x094D, 0x0930].pack("U*"), 2],
602+
[[0x0924, 0x094D, 0x0930].pack("U*"), RbConfig::CONFIG["UNICODE_VERSION"] >= "15.1.0" ? 1 : 2],
603603
# GB3
604604
[%w(cr lf), 1],
605605
# GB4

0 commit comments

Comments
 (0)