rubyx/test/elf/test_something.rb
Torsten Ruger 7fc104a019 Use minitest-profile to find long tests
Only found one big fibo
All else due to large amount of objects
(now with factories it jumped from hundreds to thousands)
2018-09-02 13:58:42 +03:00

29 lines
453 B
Ruby

require_relative "helper"
module Elf
class SomethingTest < FullTest
def test_add
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
def main(arg)
return fibo(8)
end
HERE
@exit_code = 4
check in_space(input) , "fibo"
end
end
end