blueloveTH 1 год назад
Родитель
Сommit
02d3512681
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      tests/27_goto.py
  2. 1 1
      tests/99_bugs.py

+ 1 - 1
tests/27_goto.py

@@ -35,4 +35,4 @@ assert sum == 5050
 for i in range(4):
 for i in range(4):
     _ = 0
     _ = 0
 # if there is no op here, the block check will fail
 # if there is no op here, the block check will fail
-while i: --i
+while i: i-=1

+ 1 - 1
tests/99_bugs.py

@@ -66,7 +66,7 @@ assert f((
 def f():
 def f():
     for i in range(4):
     for i in range(4):
         _ = 0
         _ = 0
-    while i: --i
+    while i: i-=1
 f()
 f()
 
 
 # class A: a=b=1
 # class A: a=b=1