fix fragment tests to actually execute on the pi and check the output

This commit is contained in:
Torsten Ruger
2014-05-28 14:55:13 +03:00
parent e9720c4c54
commit 5a415aed92
9 changed files with 26 additions and 12 deletions

View File

@ -18,7 +18,7 @@ module Ast
ret = while_block.new_block "#{into.name}_return"
cond_val = condition.compile(context , while_block)
puts "compiled while condition #{cond_val.inspect}"
while_block.b ret , condition_code: cond_val.operator
while_block.b ret , condition_code: cond_val.not_operator
last = nil
body.each do |part|
last = part.compile(context , while_block )