rubyx/test/virtual/test_machine.rb

32 lines
448 B
Ruby
Raw Normal View History

require_relative "virtual_helper"
class TestMethods < MiniTest::Test
include VirtualHelper
2015-05-05 15:11:09 +03:00
def test_object
@string_input = <<HERE
class Object
2014-08-06 18:49:20 +03:00
def get_class()
@layout.get_class()
end
end
HERE
@output = nil
check
end
2014-08-07 15:41:13 +03:00
def test_message_tpye
@string_input = <<HERE
class Message
def get_type_for(name)
index = @layout.get_index(name)
get_at(index)
end
end
HERE
@output = ""
2014-08-07 15:41:13 +03:00
check
end
2015-05-05 15:11:09 +03:00
end