Skip to content

Commit

Permalink
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/compiler/general_spec.rb
Original file line number Diff line number Diff line change
@@ -1134,5 +1134,13 @@ def self.foo
x.should == :ok
end
end

it "compiles calls with one fixnum arg that do not have optimized paths" do
run('ary = []; ary.push(1)') {|x| expect(x).to eq([1]) }
end

it "compiles calls with one float arg that do not have optimized paths" do
run('ary = []; ary.push(1.0)') {|x| expect(x).to eq([1.0]) }
end
end
end

0 comments on commit e06fb98

Please sign in to comment.