You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vartestcases= []testcase{
...
{filter: "@ten, (@one && @two)", expected: []*pickle{p2, p3}}, // evaluate `,` second by setting parentheses, a feature
{filter: "@three && @two, @one", expected: []*pickle{p1, p2, p3}}, // evaluate `,` and `&&` left to right, a bug (current behavior would be to only pass p3)...
}
Hi Sam. If I understand correctly, you would like to able to have a feature that allows grouping of tag expressions? Basically have a more complete tag expression evaluator? Could you please provide some examples where this could be used? Thanks!
π What did you see?
tag filtering doesn't support nesting parentheses (more of a feature), nor does it implement commutativity of boolean algebra (why I made this a bug).
source code implementation
β What did you expect to see?
Parentheses and PEMDAS respect.
π¦ Which tool/library version are you using?
v0.14.0
π¬ How could we reproduce it?
could use above example in newest release.
Steps to reproduce the behavior:
example test cases that I would hope for from the unit testing
π Any additional context?
This text was originally generated from a template, then edited by hand. You can modify the template here.
The text was updated successfully, but these errors were encountered: