rubyx/stash/fragments/test_many_adds.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

35 lines
554 B
Ruby

require_relative 'helper'
module Rubyx
class TestManyAdds < MiniTest::Test
include RubyxTests
def pest_ruby_adds_looping
@string_input = <<HERE
def fibo( n)
a = 0
b = 1
i = 1
while( i < n ) do
result = a + b
a = b
b = result
i+= 1
end
return result
end
counter = 100000
while(counter > 0) do
fibo(40)
counter -= 1
end
HERE
@length = 37
@stdout = "Hello there"
check
end
end
end