Torsten Rüger
12b29285d7
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
16 lines
353 B
Ruby
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
|