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:
Torsten Ruger
2016-12-25 18:02:39 +02:00
parent 1b8d6149dd
commit 35adf9a5e6
31 changed files with 126 additions and 115 deletions

View File

@ -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