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",