We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d355db4 commit 4f79abeCopy full SHA for 4f79abe
abstra_json_sql/apply_test.py
@@ -86,6 +86,18 @@ def test_boolean(self):
86
result = apply_expression(expression, ctx)
87
self.assertEqual(result, True)
88
89
+ def test_parentheses(self):
90
+ expression = PlusExpression(
91
+ left=MultiplyExpression(
92
+ left=NameExpression(name="a"),
93
+ right=NameExpression(name="b"),
94
+ ),
95
+ right=NameExpression(name="c"),
96
+ )
97
+ ctx = {"a": 2, "b": 3, "c": 4}
98
+ result = apply_expression(expression, ctx)
99
+ self.assertEqual(result, 10)
100
+
101
102
class TestApplyWhere(TestCase):
103
def test_where_no_context(self):
0 commit comments