mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
99cd0e1f79
commit
ba357bace2
2 changed files with 15 additions and 3 deletions
|
@ -20,9 +20,15 @@ describe "RbConfig::CONFIG['UNICODE_VERSION']" do
|
|||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue