rubyx/test/elf/test_something.rb
Torsten Rüger 701890f625 Fix bad test coverage
One typo, one debug test
Also stop producing those object files, use in memory io
2019-09-25 01:14:00 +03:00

30 lines
508 B
Ruby

require_relative "helper"
module Elf
class SomethingTest < FullTest
include Preloader
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 get_preload("Integer.lt;Integer.plus") + in_space(input)
end
end
end