summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/while_cond.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-03-12 22:47:44 +0000
committerDamien George <damien.p.george@gmail.com>2015-03-12 22:48:45 +0000
commitaf43565322f5c45a1a92df1afceff24c93021998 (patch)
tree0334982a350b9201b8e0b256dc7c04dff8b3ea77 /tests/basics/while_cond.py
parent848dd0e7620b086f984fc6254afc8202d5448a77 (diff)
downloadmicropython-af43565322f5c45a1a92df1afceff24c93021998.tar.gz
micropython-af43565322f5c45a1a92df1afceff24c93021998.zip
tests: Add tests for things that are not already tested.
The aim here is to improve coverage of the code.
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')