rubyx/test/elf/test_somethingelse.rb

16 lines
352 B
Ruby
Raw Normal View History

2018-06-23 14:58:43 +02:00
require_relative "helper"
2018-06-23 14:58:43 +02:00
module Elf
2018-06-25 19:21:15 +02:00
class SomeOtherTest < FullTest
2018-06-23 14:58:43 +02:00
def test_string_put
hello = "Hello World!\n"
2018-06-25 19:21:15 +02:00
input = "return '#{hello}'.putstring"
preload = "class Word < Data8;def putstring;X.putstring;end;end;"
2018-06-23 14:58:43 +02:00
@stdout = hello
@exit_code = hello.length
check preload + as_main(input)
2018-06-23 14:58:43 +02:00
end
end
end