2018-05-24 20:20:56 +02:00
|
|
|
require_relative 'helper'
|
2018-04-24 19:12:49 +02:00
|
|
|
|
|
|
|
module Mains
|
2018-05-24 20:20:56 +02:00
|
|
|
class TestPuts #< MainsTest
|
2018-04-24 19:12:49 +02:00
|
|
|
|
|
|
|
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
|