just checking fibo 30

at just under 8000 instructions i can't wait to run real benchmarks
This commit is contained in:
Torsten Ruger 2018-08-06 14:13:39 +03:00
parent 393ac873c9
commit 554c2d3d73
2 changed files with 3 additions and 1 deletions

View File

@ -16,7 +16,8 @@ module Mains
tests << method_name
input = File.read(file_name)
self.send(:define_method, method_name ) do
run_main(input)
ticks = run_main(input)
#puts "Ticks for #{method_name}=#{ticks}"
assert_equal stdout , @interpreter.stdout , "Wrong stdout #{name}"
assert_equal exit_code , get_return.to_s , "Wrong exit code #{name}"
end

View File

@ -106,6 +106,7 @@ module Risc
end
def run_all
@interpreter.tick while(@interpreter.instruction)
@interpreter.clock
end
# for chaning the tests quickly output all instructions that are executed