Skip to content

Commit 87238bb

Browse files
committed
added some boolean tests; see #335
1 parent 3c2b3d6 commit 87238bb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_unit_eval.py

+7
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@
4040
["1 and 0", 0],
4141
["0 or 1", 1],
4242
["0 or 0", 0],
43+
["1 and True", True],
44+
["1 and False", False],
45+
["0 and False", 0],
46+
["0 or 1", 1],
47+
["0 or 0", 0],
48+
["0 or True", True],
49+
["0 or False", False],
4350
["f'{1} {2:02d} {3:.1f}'", "1 02 3.0"],
4451
[["x = None", "x is None"], True],
4552
["None is not None", False],

0 commit comments

Comments
 (0)