diff options
author | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-04 06:31:40 +0000 |
---|---|---|
committer | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-04 06:31:40 +0000 |
commit | 84d679794f56de3cc286aa988844a15df2c0cdf5 (patch) | |
tree | d4cb86d7882c47dd27a67aae0bd1bbbdac77e54b /test/ruby/enc | |
parent | 35ada33f8386b56611f10b1a0a4e5667e9b08071 (diff) | |
download | ruby-84d679794f56de3cc286aa988844a15df2c0cdf5.tar.gz |
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
Diffstat (limited to 'test/ruby/enc')
-rw-r--r-- | test/ruby/enc/test_emoji_breaks.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/enc/test_emoji_breaks.rb b/test/ruby/enc/test_emoji_breaks.rb index 0a831bff93..5d22ba9185 100644 --- a/test/ruby/enc/test_emoji_breaks.rb +++ b/test/ruby/enc/test_emoji_breaks.rb @@ -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, |