first interpreter tests

This commit is contained in:
2020-03-13 20:18:34 +02:00
parent c16ed5ab3a
commit 1378745907
7 changed files with 34 additions and 36 deletions

View File

@ -48,8 +48,8 @@ module Risc
end
def get_return
assert_equal Parfait::Message , @interpreter.get_register(:r8).class
@interpreter.get_register(:r0)
assert_equal Parfait::Message , @interpreter.get_register(:saved_message).class
@interpreter.get_register(:message)
end
# do as many as given ticks in the main, ie main_at more
@ -66,6 +66,7 @@ module Risc
end
return last
end
alias :risc :main_ticks
# collect the classes of all executed istructions
def all_classes(max = 300)