mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@f8a2d54
This commit is contained in:
parent
ed377cc9aa
commit
809f0b8a13
76 changed files with 2451 additions and 224 deletions
|
@ -12,6 +12,13 @@ describe "Range#inspect" do
|
|||
(0.5..2.4).inspect.should == "0.5..2.4"
|
||||
end
|
||||
|
||||
ruby_version_is "2.6" do
|
||||
it "works for endless ranges" do
|
||||
eval("(1..)").inspect.should == "1.."
|
||||
eval("(0.1...)").inspect.should == "0.1..."
|
||||
end
|
||||
end
|
||||
|
||||
ruby_version_is ''...'2.7' do
|
||||
it "returns a tainted string if either end is tainted" do
|
||||
(("a".taint)..."c").inspect.tainted?.should be_true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue