| commit | 7bda87e80adf980a2b0c50da66e3f9fa17c27605 | [log] [tgz] |
|---|---|---|
| author | Laurent Le Brun <laurentlb@google.com> | Mon Aug 24 15:13:53 2015 +0000 |
| committer | Laszlo Csomor <laszlocsomor@google.com> | Tue Aug 25 07:40:05 2015 +0000 |
| tree | c4f79e641c4180edb7eba5c26f3df5a2bbefc505 | |
| parent | 092f13b79ac6a1b5ef065e83929eb1403d69f975 [diff] [blame] |
Add more tests for the PIPE operator. -- MOS_MIGRATED_REVID=101364893
diff --git a/src/test/java/com/google/devtools/build/lib/syntax/EvaluationTest.java b/src/test/java/com/google/devtools/build/lib/syntax/EvaluationTest.java index 14988cb..6b107a1 100644 --- a/src/test/java/com/google/devtools/build/lib/syntax/EvaluationTest.java +++ b/src/test/java/com/google/devtools/build/lib/syntax/EvaluationTest.java
@@ -298,6 +298,7 @@ .testStatement("-7 / 2", -4) .testStatement("-7 / -2", 3) .testStatement("2147483647 / 2", 1073741823) + .testIfErrorContains("unsupported operand type(s) for /: 'string' and 'int'", "'str' / 2") .testIfExactError("integer division by zero", "5 / 0"); }