summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/while_cond.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/while_cond.py')
-rw-r--r--tests/basics/while_cond.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/basics/while_cond.py b/tests/basics/while_cond.py
index 449c5b66ea..eccc7a638b 100644
--- a/tests/basics/while_cond.py
+++ b/tests/basics/while_cond.py
@@ -16,3 +16,21 @@ while 2:
while -1:
print(4)
break
+
+while False:
+ print('a')
+else:
+ print('b')
+
+while True:
+ print('a')
+ break
+
+while not False:
+ print('a')
+ break
+
+while not True:
+ print('a')
+else:
+ print('b')