ruby-changes:66727
From: Martin <ko1@a...>
Date: Thu, 8 Jul 2021 15:48:16 +0900 (JST)
Subject: [ruby-changes:66727] ba357bace2 (master): Add new Unicode/Emoji version checks to spec/ruby/library/rbconfig
https://git.ruby-lang.org/ruby.git/commit/?id=ba357bace2 From ba357bace26a118e2ef10ca25cf3741bfb971bb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20D=C3=BCrst?= <duerst@i...> Date: Sun, 4 Jul 2021 19:06:26 +0900 Subject: Add new Unicode/Emoji version checks to spec/ruby/library/rbconfig - Limit Unicode version 12.1.0 to Ruby versions 2.6.3 - 3.0 - Check that Ruby version 3.1 has Unicode version 13.0.0 - Limit Unicode Emoji version 12.1 to Ruby versions 2.7 - 3.0 - Check that Ruby version 3.1 has Unicode Emoji version 13.0 --- spec/ruby/library/rbconfig/unicode_emoji_version_spec.rb | 8 +++++++- spec/ruby/library/rbconfig/unicode_version_spec.rb | 10 ++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/spec/ruby/library/rbconfig/unicode_emoji_version_spec.rb b/spec/ruby/library/rbconfig/unicode_emoji_version_spec.rb index d3df8b7..2e713ae 100644 --- a/spec/ruby/library/rbconfig/unicode_emoji_version_spec.rb +++ b/spec/ruby/library/rbconfig/unicode_emoji_version_spec.rb @@ -14,9 +14,15 @@ describe "RbConfig::CONFIG['UNICODE_EMOJI_VERSION']" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/rbconfig/unicode_emoji_version_spec.rb#L14 end end - ruby_version_is "2.7" do + ruby_version_is "2.7"..."3.0" do it "is 12.1 for Ruby 2.7" do RbConfig::CONFIG['UNICODE_EMOJI_VERSION'].should == "12.1" end end + + ruby_version_is "3.1" do + it "is 13.0 for Ruby 3.1" do + RbConfig::CONFIG['UNICODE_EMOJI_VERSION'].should == "13.0" + end + end end diff --git a/spec/ruby/library/rbconfig/unicode_version_spec.rb b/spec/ruby/library/rbconfig/unicode_version_spec.rb index 65bd70c..0c1c943 100644 --- a/spec/ruby/library/rbconfig/unicode_version_spec.rb +++ b/spec/ruby/library/rbconfig/unicode_version_spec.rb @@ -20,9 +20,15 @@ describe "RbConfig::CONFIG['UNICODE_VERSION']" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/rbconfig/unicode_version_spec.rb#L20 end end - ruby_version_is "2.6.3" do - it "is 12.1.0 for Ruby 2.6.3+ and Ruby 2.7" do + ruby_version_is "2.6.3"..."3.0" do + it "is 12.1.0 for Ruby 2.6.3+, Ruby 2.7, and Ruby 3.0" do RbConfig::CONFIG['UNICODE_VERSION'].should == "12.1.0" end end + + ruby_version_is "3.1" do + it "is 13.0.0 for Ruby 3.1" do + RbConfig::CONFIG['UNICODE_VERSION'].should == "13.0.0" + end + end end -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/