fix and test return

return was in the wrong message
better tests now
This commit is contained in:
Torsten Ruger
2015-11-05 12:22:48 +02:00
parent ff759bf0c1
commit 4014ad27fe
5 changed files with 63 additions and 31 deletions

View File

@ -30,7 +30,7 @@ module Soml
ret = use_reg( :Integer )
# the effect of the method is that the NewMessage Return slot will be filled, return it
# but move it into a register too
add_code Register.get_slot(statement, :message , :return_value , ret )
add_code Register.get_slot(statement, :new_message , :return_value , ret )
ret
end