diff options
Diffstat (limited to 'test/ruby/test_string.rb')
-rw-r--r-- | test/ruby/test_string.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb index f71dfc7fee..31b7abe31c 100644 --- a/test/ruby/test_string.rb +++ b/test/ruby/test_string.rb @@ -989,6 +989,9 @@ CODE assert_equal ["a", "b", "c"], "abc".b.each_grapheme_cluster.to_a s = ("x"+"\u{10ABCD}"*250000) assert_empty(s.each_grapheme_cluster {s.clear}) + + assert_nil "\u{20 200d}".each_grapheme_cluster.size + assert_nil "\u{a 308}".each_grapheme_cluster.size end def test_grapheme_clusters |