small test fixes

This commit is contained in:
Torsten Ruger
2018-06-25 20:21:15 +03:00
parent 67a6ef9f67
commit 4103da7490
5 changed files with 43 additions and 19 deletions

View File

@ -0,0 +1,14 @@
require_relative "helper"
module Elf
class SomeOtherTest < FullTest
def test_string_put
hello = "Hello World!\n"
input = "return '#{hello}'.putstring"
@stdout = hello
@exit_code = hello.length
check as_main(input), "hello"
end
end
end