rename set_slot
set_slot was clear about the target, but not the source. Better with reg_to_slot (and soon it’s inverse slot_to_reg)
This commit is contained in:
@ -9,6 +9,8 @@ class TestNamedLists < MiniTest::Test
|
||||
|
||||
def test_named_list_get_type
|
||||
assert_equal Parfait::Type , @type.class
|
||||
assert @type.instance_names
|
||||
assert @named_list.get_instance_variables
|
||||
end
|
||||
|
||||
def test_named_list_next_set
|
||||
@ -16,4 +18,13 @@ class TestNamedLists < MiniTest::Test
|
||||
assert_equal :next_list , @named_list.next_list
|
||||
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
|
||||
|
Reference in New Issue
Block a user