diff options
author | Damien George <damien.p.george@gmail.com> | 2015-03-12 22:47:44 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-03-12 22:48:45 +0000 |
commit | af43565322f5c45a1a92df1afceff24c93021998 (patch) | |
tree | 0334982a350b9201b8e0b256dc7c04dff8b3ea77 /tests/basics/ifcond.py | |
parent | 848dd0e7620b086f984fc6254afc8202d5448a77 (diff) |
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/ifcond.py')
-rw-r--r-- | tests/basics/ifcond.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/basics/ifcond.py b/tests/basics/ifcond.py index 911440efa..9264aa74d 100644 --- a/tests/basics/ifcond.py +++ b/tests/basics/ifcond.py @@ -33,6 +33,30 @@ elif 0: else: print(17) +if not False: + print('a') + +if not True: + print('a') +else: + print('b') + +if False: + print('a') +else: + print('b') + +if True: + print('a') + +if (1,): + print('a') + +if not (1,): + print('a') +else: + print('b') + f2 = 0 def f(t1, t2, f1): |