rubyx/test/risc/mains/test_puts.rb
Torsten Ruger 8d8cc4b016 more test fixing
only one bug to go
2018-05-24 21:20:56 +03:00

15 lines
316 B
Ruby

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