fix mom tests

and always have a list inside a class
This commit is contained in:
Torsten Ruger
2018-06-29 23:29:10 +03:00
parent 5b87133df2
commit 8d7a2fe4d6
8 changed files with 42 additions and 32 deletions

View File

@ -30,7 +30,7 @@ module Vool
# create mom instructions
def to_mom( method )
raise "Empty list ? #{statements.length}" unless @statements[0]
raise "Empty list ? #{statements.length}" if empty?
flat = @statements.shift.to_mom(method)
while( nekst = @statements.shift )
flat.append nekst.to_mom(method)