This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new b48277d1ff Follow-on to "Give && higher precedence than || in SSI ..."
b48277d1ff is described below
commit b48277d1ffef06c5dda3eb76e1c14083d1615a94
Author: Mark Thomas <[email protected]>
AuthorDate: Mon Oct 19 18:56:28 2026 +0100
Follow-on to "Give && higher precedence than || in SSI ..."
Expand tests
---
test/org/apache/catalina/ssi/TestExpressionParseTree.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/test/org/apache/catalina/ssi/TestExpressionParseTree.java
b/test/org/apache/catalina/ssi/TestExpressionParseTree.java
index 522da074d8..2e5f4820dc 100644
--- a/test/org/apache/catalina/ssi/TestExpressionParseTree.java
+++ b/test/org/apache/catalina/ssi/TestExpressionParseTree.java
@@ -153,6 +153,14 @@ public class TestExpressionParseTree {
// The left-to-right grouping evaluates to false: ($a || $b) && $c
ept = new ExpressionParseTree("($a || $b) && $c", mediator);
Assert.assertFalse(ept.evaluateTree());
+ // Repeat the tests but reverse the order
+ ept = new ExpressionParseTree("$c && $b || $a", mediator);
+ Assert.assertTrue(ept.evaluateTree());
+ ept = new ExpressionParseTree("($c && $b) || $a", mediator);
+ Assert.assertTrue(ept.evaluateTree());
+ ept = new ExpressionParseTree("$c && ($b || $a)", mediator);
+ Assert.assertFalse(ept.evaluateTree());
+
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]