mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@d6921ef
This commit is contained in:
parent
207a5a5bc1
commit
a6c6eef04a
44 changed files with 1141 additions and 250 deletions
|
@ -15,6 +15,12 @@ describe "Literal Ranges" do
|
|||
(1...).should == Range.new(1, nil, true)
|
||||
end
|
||||
|
||||
ruby_version_is "3.0" do
|
||||
it "is frozen" do
|
||||
(42..).should.frozen?
|
||||
end
|
||||
end
|
||||
|
||||
ruby_version_is "2.7" do
|
||||
it "creates beginless ranges" do
|
||||
eval("(..1)").should == Range.new(nil, 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue