summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-07 09:01:13 +0000
committerduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-07 09:01:13 +0000
commita3798256c798255d30c365f689dc12c1eeeb40c3 (patch)
tree00c1787995a943c414290c4c91f06c42c2fdabfe /test
parenta830793914498ab79f11f7af328979b3ef08976b (diff)
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
Diffstat (limited to 'test')
-rw-r--r--test/ruby/enc/test_emoji_breaks.rb3
1 files changed, 1 insertions, 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)