diff options
author | Martin Dürst <duerst@it.aoyama.ac.jp> | 2022-12-06 09:38:06 +0900 |
---|---|---|
committer | Martin Dürst <duerst@it.aoyama.ac.jp> | 2022-12-06 10:11:33 +0900 |
commit | ea532bd557e7579f82f1375cf9bcad5ade5fd6f8 (patch) | |
tree | 2be6196f4ef7fdea4d9042a5a02c1491486ab395 /test/ruby/enc | |
parent | f82a38be2616b190377877646fd91e3314626085 (diff) |
add file version check for new Unicode emoji file header
The change in the Unicode emoji file header took place at
version 14.0.0, but is needed only from version 15.0.0
because in version 14.0.0, another check is still active.
Diffstat (limited to 'test/ruby/enc')
-rw-r--r-- | test/ruby/enc/test_emoji_breaks.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/enc/test_emoji_breaks.rb b/test/ruby/enc/test_emoji_breaks.rb index c96d6088f5..3e2999d61e 100644 --- a/test/ruby/enc/test_emoji_breaks.rb +++ b/test/ruby/enc/test_emoji_breaks.rb @@ -84,7 +84,8 @@ class TestEmojiBreaks < Test::Unit::TestCase raise "File Name Mismatch: line: #{line}, expected filename: #{file.basename}.txt" end end - version_mismatch = false if line =~ /^# Version: #{file.version}/ + version_mismatch = false if line =~ /^# Version: #{file.version}/ # 13.0 and older + version_mismatch = false if line =~ /^# Used with Emoji Version #{EMOJI_VERSION}/ # 14.0 and newer next if line.match?(/\A(#|\z)/) if line =~ /^(\h{4,6})\.\.(\h{4,6}) *(;.+)/ # deal with Unicode ranges in emoji-sequences.txt (Bug #18028) range_start = $1.to_i(16) |