rubyx/test/risc/mains/test_puts.rb
Torsten Ruger 5f7683efcf pass return integer back out through exit
for testing of binaries later (and off course general correctness)
Some tests were using the fact that the interpreter was used, changed those to return ints rather than strings
2018-06-19 18:55:47 +03:00

14 lines
261 B
Ruby

require_relative 'helper'
module Mains
class TestPuts < MainsTest
def test_say_hi
hi = "Hello there"
run_main_return "'#{hi}'.putstring"
assert_equal hi.length , get_return
assert_equal hi , @interpreter.stdout
end
end
end