2015-12-01 11:55:33 +02:00
|
|
|
require_relative 'helper'
|
|
|
|
|
2017-01-11 19:18:04 +02:00
|
|
|
module Melon
|
|
|
|
class TestRubyHello < MiniTest::Test
|
|
|
|
include MelonTests
|
2015-12-01 11:55:33 +02:00
|
|
|
|
|
|
|
|
2017-01-11 19:18:04 +02:00
|
|
|
def test_ruby_hello
|
2017-01-15 20:30:47 +02:00
|
|
|
@string_input = in_Space 'def puts(str) ; str.putstring; end ; def main; putstring "Hello there"; end'
|
2017-01-12 20:38:04 +02:00
|
|
|
assert !check
|
2017-01-15 20:30:47 +02:00
|
|
|
assert_equal "Hello there" , @interpreter.stdout
|
2017-01-11 19:18:04 +02:00
|
|
|
end
|
|
|
|
|
2015-12-01 11:55:33 +02:00
|
|
|
end
|
|
|
|
end
|