remove Risc.resolve_to_index

mostly by using better typed registers,
which cleans up the code where it was used
This commit is contained in:
Torsten Ruger
2018-07-16 19:00:04 +03:00
parent 29363e7f72
commit 4cc04787e9
8 changed files with 27 additions and 31 deletions

View File

@ -56,14 +56,6 @@ module Parfait
assert_equal 55 , @mess.receiver
end
# not really parfait test, but related and no other place currently
def test_reg_index
message_ind = Risc.resolve_to_index( :message , :receiver )
assert_equal 2 , message_ind
@mess.set_receiver( 55)
assert_equal 55 , @mess.get_internal_word(message_ind)
end
def test_variable_index
assert_equal 1 , @type.variable_index(:next_message)
end