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
|
|
|
|
class HelloTest < 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"
|
|
|
|
@input = "return '#{hello}'.putstring"
|
|
|
|
@stdout = hello
|
|
|
|
@exit_code = hello.length
|
|
|
|
check "hello"
|
|
|
|
end
|
2014-08-21 21:57:20 +02:00
|
|
|
end
|
2015-05-16 11:53:10 +02:00
|
|
|
end
|