From 8310bc49853850d2581b92cae2d1cce4630260e3 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Wed, 4 Nov 2015 20:28:02 +0200 Subject: [PATCH] fix while tests now that while is fixed --- test/compiler/statements/test_while.rb | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/test/compiler/statements/test_while.rb b/test/compiler/statements/test_while.rb index d7963b11..e70baa29 100644 --- a/test/compiler/statements/test_while.rb +++ b/test/compiler/statements/test_while.rb @@ -15,8 +15,8 @@ class Object end end HERE - @expect = [Label, Label,LoadConstant,IsPlus,LoadConstant,SetSlot,Branch, - Label,Label,RegisterTransfer,GetSlot,FunctionReturn] + @expect = [Label, Branch, Label, LoadConstant, SetSlot, Label, LoadConstant , + IsPlus, Label, RegisterTransfer, GetSlot, FunctionReturn] check end @@ -32,9 +32,10 @@ class Object end end HERE - @expect = [Label, LoadConstant,GetSlot,SetSlot,Label,GetSlot,GetSlot, IsPlus,GetSlot, - GetSlot,LoadConstant,OperatorInstruction,GetSlot,SetSlot,Branch, - Label,GetSlot,GetSlot,SetSlot,Label,RegisterTransfer,GetSlot,FunctionReturn] + @expect = [Label, LoadConstant, GetSlot, SetSlot, Branch, Label, GetSlot , + GetSlot, LoadConstant, OperatorInstruction, GetSlot, SetSlot, Label, GetSlot , + GetSlot, IsPlus, GetSlot, GetSlot, SetSlot, Label, RegisterTransfer , + GetSlot, FunctionReturn] check end @@ -51,11 +52,10 @@ class Object end end HERE - @expect = [Label, LoadConstant,GetSlot,SetSlot,Label, - GetSlot,GetSlot,LoadConstant,OperatorInstruction,IsPlus, - GetSlot, GetSlot,LoadConstant,OperatorInstruction, GetSlot, - SetSlot,GetSlot, GetSlot,SetSlot,Branch , Label , - Label , RegisterTransfer,GetSlot,FunctionReturn] + @expect = [Label, LoadConstant, GetSlot, SetSlot, Branch, Label, GetSlot , + GetSlot, LoadConstant, OperatorInstruction, GetSlot, SetSlot, GetSlot, GetSlot , + SetSlot, Label, GetSlot, GetSlot, LoadConstant, OperatorInstruction, IsPlus , + Label, RegisterTransfer, GetSlot, FunctionReturn] check end end