Open
Description
π 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).
β 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:
- Install '...' version '...'
- Create a file called '....'
- Run command '....'
- See error '....'
example test cases that I would hope for from the unit testing
var testcases = []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)
...
}
π Any additional context?
This text was originally generated from a template, then edited by hand. You can modify the template here.
Metadata
Metadata
Assignees
Labels
No labels