rubyx/test/melon/fragments/test_hello.rb

16 lines
331 B
Ruby
Raw Normal View History

require_relative 'helper'
module Melon
class TestRubyHello < MiniTest::Test
include MelonTests
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
end
end
end