-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong evaluation result #19
Comments
Thank you for uncovering this issue! It looks like operator precedence is incorrect, where precedence should be given to Edit: Okay, I think I've got a fix that resolves the issue and passes all the existing tests. I'll implement additional tests and final cleanup tomorrow. |
I've been playing around with this CEL implementation and I noticed one odd thing with the following expressions:
Given this context
they should all evaluate to
true
, but this is not what's happening:Here's a simple reproducer:
It produces the following output:
It seems like in the case of
b && c == "string"
the interpreter effectively evaluates this expressionI'm also using a Python version of CEL interpreter and it evaluates it properly:
Produces
The text was updated successfully, but these errors were encountered: