rubyx/test/elf/test_somethingelse.rb
Torsten Rüger 12b29285d7 Lots of preloading for tests
so many relied (implicitly( on some builtin function
after all can't do much in ruby without calling
Now all those dependencies are explicit
Small risc changes come because the macro version has a return label and unreachable label
2019-09-13 14:07:12 +03:00

16 lines
353 B
Ruby

require_relative "helper"
module Elf
class SomeOtherTest < FullTest
def test_string_put
hello = "Hello World!\n"
input = "return '#{hello}'.putstring"
preload = "class Word;def putstring;X.putstring;end;end;"
@stdout = hello
@exit_code = hello.length
check preload + as_main(input), "hello"
end
end
end