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-13 13:07:12 +02:00
|
|
|
preload = "class Word;def putstring;X.putstring;end;end;"
|
2018-06-23 14:58:43 +02:00
|
|
|
@stdout = hello
|
|
|
|
@exit_code = hello.length
|
2019-09-13 13:07:12 +02:00
|
|
|
check preload + as_main(input), "hello"
|
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
|