Introduce '|' operator for set union.
--
MOS_MIGRATED_REVID=101363350
diff --git a/src/test/java/com/google/devtools/build/lib/syntax/EvaluationTestCase.java b/src/test/java/com/google/devtools/build/lib/syntax/EvaluationTestCase.java
index 7be1c86..b2d661b 100644
--- a/src/test/java/com/google/devtools/build/lib/syntax/EvaluationTestCase.java
+++ b/src/test/java/com/google/devtools/build/lib/syntax/EvaluationTestCase.java
@@ -128,7 +128,7 @@
setFailFast(true);
try {
eval(input);
- fail();
+ fail("Expected error '" + msg + "' but got no error");
} catch (IllegalArgumentException | EvalException e) {
assertThat(e).hasMessage(msg);
}
@@ -137,7 +137,7 @@
public void checkEvalErrorContains(String msg, String... input) throws Exception {
try {
eval(input);
- fail();
+ fail("Expected error containing '" + msg + "' but got no error");
} catch (IllegalArgumentException | EvalException e) {
assertThat(e.getMessage()).contains(msg);
}
@@ -146,7 +146,7 @@
public void checkEvalErrorStartsWith(String msg, String... input) throws Exception {
try {
eval(input);
- fail();
+ fail("Expected error starting with '" + msg + "' but got no error");
} catch (IllegalArgumentException | EvalException e) {
assertThat(e.getMessage()).startsWith(msg);
}