1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
duerst 2018-12-07 09:01:13 +00:00
parent a830793914
commit a3798256c7

View file

@ -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)