-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Boolean operator overrides are parsed incorrectly; currently you have to explicitly construct an And object to use it
Here's an example unittest to see this
def test_bool_override(self):
from teg.lang.integrable_program import And
x = Var('x', 0)
a = And(1 < x, x < 2)
b = 1 < x and x < 2
c = 1 < x < 2
print(f'{a}:\t{evaluate(a)}')
print(f'{b}:\t{evaluate(b)}')
print(f'{c}:\t{evaluate(c)}')
self.assertEqual(a, b)
self.assertEqual(a, c)
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request