5f7683efcf
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
14 lines
261 B
Ruby
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
|