More run tests

This commit is contained in:
rocky
2019-04-10 11:05:46 -04:00
parent f3d86e0708
commit 49e354375e
11 changed files with 22 additions and 4 deletions

View File

@@ -1,12 +1,24 @@
# Self-checking test.
b = True
assert b, 'b = True'
c = False
assert not c, 'c = False'
d = True
a = b and c or d
assert a, 'b and c or d'
a = (b or c) and d
assert a, '(b or c) and d'
a = b or c or d
assert a, 'b or c or d'
a = b and c and d
assert not a, 'b and c and d'
a = b or c and d
assert a
a = b and (c or d)
assert a
a = b and c or d
assert a
a = (b or c and d) and b
assert a
a = (b or c and d or a) and b
assert a