.. | ||
helper.rb | ||
README.md | ||
test_integer_comparison.rb | ||
test_integer_div4.rb | ||
test_integer_div10.rb | ||
test_integer_operator.rb | ||
test_object_exit.rb | ||
test_object_get.rb | ||
test_object_init.rb | ||
test_object_missing.rb | ||
test_object_set.rb | ||
test_word_get.rb | ||
test_word_putstring.rb | ||
test_word_set.rb |
Pre - testing builtin
In the process of moving builtin from mom to parfait. Considering we started at risc, this is progress.
Builtin methods should (will) use the Macro idea to actually become code and land in the parfait code.
On the way there, we start by Testing and moving the old ones. Since we want to be able to test some methods even after the move, without parsing/processing the whole of parfait we have to have a method of "injecting" the single? methods.
Mom level
There a re two test levels to every method. Mom being the first, where we basically just see if the right Mom instruction has been generated
Risc
Second level is to check the actual risc instructions that are generated.
Current tests test only the length, but there are some tests in interpreter dir that test actual instructions. Should move those, as they are too detailed in a mains (make the interpreter tests less brittle while at it.)