1.1 --- a/tests/logical_simple.py Tue Feb 28 00:00:09 2017 +0100
1.2 +++ b/tests/logical_simple.py Tue Feb 28 17:00:26 2017 +0100
1.3 @@ -9,20 +9,44 @@
1.4 e = not a
1.5 print e # False
1.6
1.7 +f = 0
1.8 +
1.9 if a and b:
1.10 print "a and b" # a and b
1.11 +else:
1.12 + print "! (a and b)"
1.13 +
1.14 +if a and f:
1.15 + print "a and f"
1.16 +else:
1.17 + print "! (a and f)" # ! (a and f)
1.18
1.19 if not (a and b):
1.20 - print "not (a and b)" #
1.21 + print "not (a and b)"
1.22 +else:
1.23 + print "! (not (a and b))" # ! (not (a and b))
1.24
1.25 if not not (a and b):
1.26 print "not not (a and b)" # not not (a and b)
1.27 +else:
1.28 + print "! (not not (a and b))"
1.29
1.30 if a or b:
1.31 print "a or b" # a or b
1.32 +else:
1.33 + print "! (a or b)"
1.34
1.35 if not (a or b):
1.36 - print "not (a or b)" #
1.37 + print "not (a or b)"
1.38 +else:
1.39 + print "! (not (a or b))" # ! (not (a or b))
1.40
1.41 if not not (a or b):
1.42 print "not not (a or b)" # not not (a or b)
1.43 +else:
1.44 + print "! (not not (a or b))"
1.45 +
1.46 +if a and b or f:
1.47 + print "a and b or f" # a and b or f
1.48 +else:
1.49 + print "! (a and b or f)"