fixed some interpreter tests

hoisting is slightly more simple and that adds a couple insstructions
This commit is contained in:
Torsten Ruger
2018-07-20 21:00:47 +03:00
parent 6022aa4dab
commit b00b0cf064
5 changed files with 119 additions and 112 deletions

View File

@ -19,7 +19,7 @@ module Risc
ticks( start_at ) if start_at > 0
should.each_with_index do |name , index|
got = ticks(1)
assert_equal got.class ,name , "Wrong class for #{index + 1 - start_at}, expect #{name} , got #{got}"
assert_equal got.class ,name , "Wrong class for #{index + 1}, expect #{name} , got #{got}"
end
end
# check the main only, ignoring the __init instructions