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"
|
2018-06-23 15:58:43 +03:00
|
|
|
@stdout = hello
|
|
|
|
@exit_code = hello.length
|
2018-06-25 20:21:15 +03:00
|
|
|
check as_main(input), "hello"
|
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
|