rubyx/test/elf/test_somethingelse.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

16 lines
352 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 < Data8;def putstring;X.putstring;end;end;"
@stdout = hello
@exit_code = hello.length
check preload + as_main(input)
end
end
end