Revert "each_grapheme_cluster shouldn't return size [Bug #14363]"

This reverts commit r62887.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2018-03-22 07:58:37 +00:00
parent 613decd088
commit 6e0f5b8407
2 changed files with 1 additions and 4 deletions

View file

@ -989,9 +989,6 @@ 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