Torsten Rüger
701890f625
One typo, one debug test Also stop producing those object files, use in memory io
30 lines
508 B
Ruby
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
|