rubyx/stash/fragments/test_many_calls.rb
Torsten Ruger 28ae1de59f cleaning out stash
most of the stuff is now reimplemented
fragments still open (as interpreter is not working yet)
2018-03-19 16:25:27 +05:30

31 lines
490 B
Ruby

require_relative 'helper'
module Rubyx
class TestManyCalls < MiniTest::Test
include RubyxTests
def pest_ruby_calls_looping
@string_input = <<HERE
def fibo_r( n )
if( n < 2 )
return n
else
return fibo_r(n - 1) + fibo_r(n - 2)
end
end
counter = 1000
while(counter > 0) do
fibo_r(20)
counter -= 1
end
HERE
@length = 37
@stdout = ""
check
end
end
end