rubyx/test/parfait/test_layout.rb
2015-11-08 00:55:37 +02:00

34 lines
537 B
Ruby

require_relative 'helper'
class TestLayoutRT < MiniTest::Test
include RuntimeTests
def test_main
@string_input = "return 1"
check_return 1
end
def test_get_layout
@string_input = "return get_layout()"
check_return_class Parfait::Layout
end
def test_get_class
@string_input = "return get_class()"
check_return_class Parfait::Class
end
def test_puts_class
@string_input = <<HERE
Class c = get_class()
Word w = c.get_name()
w.putstring()
HERE
@stdout = "Space"
check
end
end