2014-07-31 21:38:01 +03:00
|
|
|
require_relative "virtual_helper"
|
|
|
|
|
|
|
|
class TestMethods < MiniTest::Test
|
|
|
|
include VirtualHelper
|
|
|
|
|
|
|
|
def test_object
|
|
|
|
@string_input = <<HERE
|
|
|
|
class Object
|
2014-08-06 18:49:20 +03:00
|
|
|
def get_class()
|
|
|
|
@layout.get_class()
|
|
|
|
end
|
2014-07-31 21:38:01 +03:00
|
|
|
end
|
|
|
|
HERE
|
2014-08-13 11:59:51 +03:00
|
|
|
@output = ""
|
2014-07-31 21:38:01 +03:00
|
|
|
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
|
2014-08-13 11:59:51 +03:00
|
|
|
@output = ""
|
2014-08-07 15:41:13 +03:00
|
|
|
check
|
|
|
|
end
|
|
|
|
|
2014-07-31 21:38:01 +03:00
|
|
|
end
|