minor test fixes

This commit is contained in:
Torsten Ruger
2018-07-02 23:03:33 +03:00
parent 56f2742e89
commit 55b5884c4e
3 changed files with 9 additions and 18 deletions

View File

@ -9,6 +9,7 @@ module Risc
def setup
@linker = RubyX::RubyXCompiler.new(@string_input).ruby_to_binary( :interpreter)
@interpreter = Interpreter.new(@linker)
@interpreter.start_program
end
alias :do_setup :setup
@ -57,7 +58,7 @@ module Risc
classes = []
tick = 1
begin
while true and (classes.length < max)
while(classes.length < max)
cl = ticks(1).class
tick += 1
classes << cl