From af43565322f5c45a1a92df1afceff24c93021998 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 12 Mar 2015 22:47:44 +0000 Subject: tests: Add tests for things that are not already tested. The aim here is to improve coverage of the code. --- tests/basics/while_cond.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'tests/basics/while_cond.py') diff --git a/tests/basics/while_cond.py b/tests/basics/while_cond.py index 449c5b66e..eccc7a638 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') -- cgit v1.2.3