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