mirror of
https://github.com/ruby/ruby.git
synced 2025-08-28 15:36:16 +02:00
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:
parent
613decd088
commit
6e0f5b8407
2 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue