2018-06-23 15:58:43 +03:00
|
|
|
require_relative "helper"
|
2014-08-21 22:57:20 +03:00
|
|
|
|
2018-06-23 15:58:43 +03:00
|
|
|
module Elf
|
2018-06-25 20:21:15 +03:00
|
|
|
class SomeOtherTest < FullTest
|
2015-05-16 12:53:10 +03:00
|
|
|
|
2018-06-23 15:58:43 +03:00
|
|
|
def test_string_put
|
|
|
|
hello = "Hello World!\n"
|
2018-06-25 20:21:15 +03:00
|
|
|
input = "return '#{hello}'.putstring"
|
2019-09-24 17:25:19 +03:00
|
|
|
preload = "class Word < Data8;def putstring;X.putstring;end;end;"
|
2018-06-23 15:58:43 +03:00
|
|
|
@stdout = hello
|
|
|
|
@exit_code = hello.length
|
2019-09-25 01:14:00 +03:00
|
|
|
check preload + as_main(input)
|
2018-06-23 15:58:43 +03:00
|
|
|
end
|
2014-08-21 22:57:20 +03:00
|
|
|
end
|
2015-05-16 12:53:10 +03:00
|
|
|
end
|