From 66a6073859ac6ae2143a9d72162efedece7e1348 Mon Sep 17 00:00:00 2001 From: duerst Date: Wed, 5 Dec 2018 08:10:24 +0000 Subject: update to Unicode 11.0.0 (main step, not complete yet) - common.mk: Change Unicode version to 11.0.0, and Emoji version to 11.0 - test/ruby/enc/test_emoji_breaks.rb: update hard-coded Emoji version - enc/unicode/11.0.0, enc/unicode/11.0.0/casefold.h, enc/unicode/name2ctype.h: Add generated files. Files for Unicode 10.0.0 will be removed once we are sure 11.0.0 works. - lib/unicode_normalize/tables.rb: Updated table. - regparse.c: Almost completely reimplement grapheme cluster detection in function node_extended_grapheme_cluster(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/enc/test_emoji_breaks.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/ruby/enc') diff --git a/test/ruby/enc/test_emoji_breaks.rb b/test/ruby/enc/test_emoji_breaks.rb index 5d22ba9185..53789aa225 100644 --- a/test/ruby/enc/test_emoji_breaks.rb +++ b/test/ruby/enc/test_emoji_breaks.rb @@ -30,7 +30,7 @@ end class TestEmojiBreaks < Test::Unit::TestCase EMOJI_DATA_FILES = %w[emoji-sequences emoji-test emoji-variation-sequences emoji-zwj-sequences] - EMOJI_VERSION = '5.0' # hard-coded, should be replaced by + EMOJI_VERSION = '11.0' # hard-coded, should be replaced by # RbConfig::CONFIG['UNICODE_EMOJI_VERSION'] or so, see feature #15341 EMOJI_DATA_PATH = File.expand_path("../../../enc/unicode/data/emoji/#{EMOJI_VERSION}", __dir__) @@ -100,7 +100,7 @@ TestEmojiBreaks.data_files_available? and class TestEmojiBreaks def test_mixed_emoji srand 0 length = all_tests.length - step = 503 # use a prime number + step = 503 # use a prime number all_tests.each do |test1| start = rand step start.step(by: step, to: length-1) do |t2| -- cgit v1.2.3