2018-06-23 14:58:43 +02:00
|
|
|
require_relative "helper"
|
2014-08-21 21:57:20 +02:00
|
|
|
|
2018-06-23 14:58:43 +02:00
|
|
|
module Elf
|
2018-06-25 19:21:15 +02:00
|
|
|
class SomeOtherTest < FullTest
|
2015-05-16 11:53:10 +02:00
|
|
|
|
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"
|
2019-09-24 16:25:19 +02:00
|
|
|
preload = "class Word < Data8;def putstring;X.putstring;end;end;"
|
2018-06-23 14:58:43 +02:00
|
|
|
@stdout = hello
|
|
|
|
@exit_code = hello.length
|
2019-09-25 00:14:00 +02:00
|
|
|
check preload + as_main(input)
|
2018-06-23 14:58:43 +02:00
|
|
|
end
|
2014-08-21 21:57:20 +02:00
|
|
|
end
|
2015-05-16 11:53:10 +02:00
|
|
|
end
|