From a3798256c798255d30c365f689dc12c1eeeb40c3 Mon Sep 17 00:00:00 2001 From: duerst Date: Fri, 7 Dec 2018 09:01:13 +0000 Subject: [PATCH] replace hardcoded emoji version by RbConfig::CONFIG['UNICODE_EMOJI_VERSION'] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/enc/test_emoji_breaks.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/ruby/enc/test_emoji_breaks.rb b/test/ruby/enc/test_emoji_breaks.rb index 53789aa225..37a29640d8 100644 --- a/test/ruby/enc/test_emoji_breaks.rb +++ b/test/ruby/enc/test_emoji_breaks.rb @@ -30,8 +30,7 @@ end class TestEmojiBreaks < Test::Unit::TestCase EMOJI_DATA_FILES = %w[emoji-sequences emoji-test emoji-variation-sequences emoji-zwj-sequences] - EMOJI_VERSION = '11.0' # hard-coded, should be replaced by - # RbConfig::CONFIG['UNICODE_EMOJI_VERSION'] or so, see feature #15341 + EMOJI_VERSION = RbConfig::CONFIG['UNICODE_EMOJI_VERSION'] EMOJI_DATA_PATH = File.expand_path("../../../enc/unicode/data/emoji/#{EMOJI_VERSION}", __dir__) def self.expand_filename(basename)