mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
exclude skin tones as second component in TestEmojiBreaks#test_mixed_emoji
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
35ada33f83
commit
84d679794f
1 changed files with 2 additions and 0 deletions
|
@ -105,6 +105,8 @@ TestEmojiBreaks.data_files_available? and class TestEmojiBreaks
|
|||
start = rand step
|
||||
start.step(by: step, to: length-1) do |t2|
|
||||
test2 = all_tests[t2]
|
||||
# exclude skin tones, because they glue to previous grapheme clusters
|
||||
next if (0x1F3FB..0x1F3FF).include? test2.string.ord
|
||||
expected = [test1.string, test2.string]
|
||||
actual = (test1.string+test2.string).each_grapheme_cluster.to_a
|
||||
assert_equal expected, actual,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue