clarify meaning of version guards for Unicode version specs [ci skip]
This commit is contained in:
parent
9d6cc7e4c0
commit
267f0089d3
@ -20,14 +20,15 @@ describe "RbConfig::CONFIG['UNICODE_EMOJI_VERSION']" do
|
||||
end
|
||||
end
|
||||
|
||||
ruby_version_is "3.1"..."3.2" do
|
||||
it "is 13.1 for Ruby 3.1" do
|
||||
RbConfig::CONFIG['UNICODE_EMOJI_VERSION'].should == "13.1"
|
||||
end
|
||||
end
|
||||
ruby_version_is "3.1"..."3.2" do
|
||||
it "is 13.1 for Ruby 3.1" do
|
||||
RbConfig::CONFIG['UNICODE_EMOJI_VERSION'].should == "13.1"
|
||||
end
|
||||
end
|
||||
|
||||
# Caution: ruby_version_is means is_or_later
|
||||
ruby_version_is "3.2" do
|
||||
it "is 14.0 for Ruby 3.2" do
|
||||
it "is 14.0 for Ruby 3.2 or later" do
|
||||
RbConfig::CONFIG['UNICODE_EMOJI_VERSION'].should == "14.0"
|
||||
end
|
||||
end
|
||||
|
@ -20,14 +20,15 @@ describe "RbConfig::CONFIG['UNICODE_VERSION']" do
|
||||
end
|
||||
end
|
||||
|
||||
ruby_version_is "3.1"..."3.2" do
|
||||
it "is 13.0.0 for Ruby 3.1" do
|
||||
RbConfig::CONFIG['UNICODE_VERSION'].should == "13.0.0"
|
||||
end
|
||||
end
|
||||
ruby_version_is "3.1"..."3.2" do
|
||||
it "is 13.0.0 for Ruby 3.1" do
|
||||
RbConfig::CONFIG['UNICODE_VERSION'].should == "13.0.0"
|
||||
end
|
||||
end
|
||||
|
||||
# Caution: ruby_version_is means is_or_later
|
||||
ruby_version_is "3.2" do
|
||||
it "is 14.0.0 for Ruby 3.2" do
|
||||
it "is 14.0.0 for Ruby 3.2 or later" do
|
||||
RbConfig::CONFIG['UNICODE_VERSION'].should == "14.0.0"
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user