rubyx/test/vm/parfait/test_named_list.rb

28 lines
564 B
Ruby
Raw Normal View History

require_relative "../helper"
class TestNamedLists < MiniTest::Test
def setup
Register.machine.boot
@space = Parfait.object_space
@named_list = @space.first_message.locals
2016-12-21 17:51:22 +01:00
@type = @named_list.get_type
end
2016-12-21 17:51:22 +01:00
def test_named_list_get_type
assert_equal Parfait::Type , @type.class
assert @type.names
assert @named_list.get_instance_variables
end
def test_new
list = Parfait::NamedList.new
assert list.get_type
end
def test_var_names
list = Parfait::NamedList.new
assert list.get_instance_variables
end
end