Skip to content

Commit d3fe0ad

Browse files
committed
Add failing test
1 parent 62a5c54 commit d3fe0ad

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_parser.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,15 @@ def test_multiselect_with_all_quoted_keys(self):
9494
result = parsed.search({'foo': {'bar': {'baz': 'CORRECT'}, 'qux': 'qux'}})
9595
self.assertEqual(result, {"bar": "CORRECT", "qux": "qux"})
9696

97+
def test_function_call_with_and_statement(self):
98+
self.assert_parsed_ast(
99+
'f(@ && @)',
100+
{'children': [{'children': [{'children': [], 'type': 'current'},
101+
{'children': [], 'type': 'current'}],
102+
'type': 'and_expression'}],
103+
'type': 'function_expression',
104+
'value': 'f'})
105+
97106

98107
class TestErrorMessages(unittest.TestCase):
99108

0 commit comments

Comments
 (0)