From 84d679794f56de3cc286aa988844a15df2c0cdf5 Mon Sep 17 00:00:00 2001 From: duerst Date: Tue, 4 Dec 2018 06:31:40 +0000 Subject: [PATCH] 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 --- test/ruby/enc/test_emoji_breaks.rb | 2 ++ 1 file changed, 2 insertions(+) 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,