rubyx/test/elf/test_somethingelse.rb
Torsten Rüger 3df54910cc rename singleton_class to single_class and misc
was clashing with real ruby method name
also many superclass mismatch fixes
some misc
2019-09-24 17:25:19 +03:00

16 lines
361 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), "hello"
end
end
end