mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby: get rid of warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
01740f0c27
commit
9194b220a5
13 changed files with 20 additions and 23 deletions
|
@ -163,7 +163,7 @@ class TestRubyOptimization < Test::Unit::TestCase
|
|||
tailcall_optimization: true,
|
||||
trace_instruction: false,
|
||||
}
|
||||
iseq = RubyVM::InstructionSequence.new(<<-EOF, "Bug#4082", bug4082, nil, option).eval
|
||||
RubyVM::InstructionSequence.new(<<-EOF, "Bug#4082", bug4082, nil, option).eval
|
||||
class #{self.class}::Tailcall
|
||||
def fact_helper(n, res)
|
||||
if n == 1
|
||||
|
@ -187,7 +187,7 @@ class TestRubyOptimization < Test::Unit::TestCase
|
|||
tailcall_optimization: true,
|
||||
trace_instruction: false,
|
||||
}
|
||||
iseq = RubyVM::InstructionSequence.new(<<-EOF, "Bug#6901", bug6901, nil, option).eval
|
||||
RubyVM::InstructionSequence.new(<<-EOF, "Bug#6901", bug6901, nil, option).eval
|
||||
def identity(val)
|
||||
val
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue