aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test
diff options
context:
space:
mode:
authorGravatar Vladimir Moskva <vladmos@google.com>2016-11-07 18:32:59 +0000
committerGravatar Klaus Aehlig <aehlig@google.com>2016-11-08 09:14:03 +0000
commitdbb3487f71cc15bcb5f1addec6d103983088ff48 (patch)
tree7455c60a86a58b96f05f21705fefe432c22177ae /src/test
parent51e4817848eabe85529118a0188ffc30d0bbc6e5 (diff)
Prohibited comparison of Skylark sets
RELNOTES: Comparing sets (`if set1 < set2:`) is not allowed anymore in Skylark because it didn't work correctly anyway. -- MOS_MIGRATED_REVID=138408411
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/com/google/devtools/build/lib/syntax/EvaluationTest.java5
1 files changed, 5 insertions, 0 deletions
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 c383ae91b2..e1e3e4e53b 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
@@ -225,6 +225,11 @@ public class EvaluationTest extends EvaluationTestCase {
}
@Test
+ public void testSetComparison() throws Exception {
+ newTest().testIfExactError("Cannot compare sets", "set([1, 2]) < set([3, 4])");
+ }
+
+ @Test
public void testSumFunction() throws Exception {
BaseFunction sum = new BaseFunction("sum") {
@Override