rubyx/test/parfait/test_named_list.rb
Torsten Ruger aa79e41d1c rename register to risc
seems to fit the layer much better as we really have a very reduced
instruction set
2017-01-19 09:02:29 +02:00

28 lines
560 B
Ruby

require_relative "../helper"
class TestNamedLists < MiniTest::Test
def setup
Risc.machine.boot
@space = Parfait.object_space
@named_list = @space.first_message.locals
@type = @named_list.get_type
end
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