From b932f67da02b08c29a57e0b1abee4e34223be611 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Thu, 22 Oct 2015 14:51:20 +0300 Subject: [PATCH] fixing tests because interpreter was fixed --- test/compiler/fragments/test_if.rb | 2 +- test/interpreter/test_puti.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/compiler/fragments/test_if.rb b/test/compiler/fragments/test_if.rb index 4dcbf0bf..ef37fc9e 100644 --- a/test/compiler/fragments/test_if.rb +++ b/test/compiler/fragments/test_if.rb @@ -25,7 +25,7 @@ HERE class Object int main() int n = 10 - if_zero(8 - n ) + if_zero(n - 10 ) "10".putstring() end end diff --git a/test/interpreter/test_puti.rb b/test/interpreter/test_puti.rb index 9a4d0ec7..21614564 100644 --- a/test/interpreter/test_puti.rb +++ b/test/interpreter/test_puti.rb @@ -70,7 +70,7 @@ HERE "GetSlot","GetSlot","IsNotzero","GetSlot","GetSlot", "SetSlot","LoadConstant","SetSlot","GetSlot","GetSlot", "SetSlot","RegisterTransfer","FunctionCall","SaveReturn","GetSlot", - "LoadConstant","OperatorInstruction","IsZero","LoadConstant","GetSlot", + "LoadConstant","OperatorInstruction","IsZero","Branch","GetSlot", "LoadConstant","OperatorInstruction","IsZero","LoadConstant","GetSlot", "LoadConstant","OperatorInstruction","IsZero","LoadConstant","GetSlot", "LoadConstant","OperatorInstruction","IsZero","LoadConstant","GetSlot",