diff options
author | 2015-08-28 11:16:25 +0000 | |
---|---|---|
committer | 2015-08-28 15:00:16 +0000 | |
commit | bd42b382a1d14a343ae7235f090266bab1fdcb77 (patch) | |
tree | c20d70344b111ca9ab983809b6cdb8126ca56459 /src/test/java/com/google | |
parent | 991bf2dcfdb6b3f4cf7295fab8f72401075c9037 (diff) |
Improve documentation and error messages for sets.
--
MOS_MIGRATED_REVID=101765937
Diffstat (limited to 'src/test/java/com/google')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/syntax/SkylarkNestedSetTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/syntax/SkylarkNestedSetTest.java b/src/test/java/com/google/devtools/build/lib/syntax/SkylarkNestedSetTest.java index 64804d5155..77ffe41e8a 100644 --- a/src/test/java/com/google/devtools/build/lib/syntax/SkylarkNestedSetTest.java +++ b/src/test/java/com/google/devtools/build/lib/syntax/SkylarkNestedSetTest.java @@ -148,12 +148,12 @@ public class SkylarkNestedSetTest extends EvaluationTestCase { @Test public void testNsetBadRightOperand() throws Exception { - checkEvalError("cannot add 'string'-s to nested sets", "l = ['a']\n" + "set() + l[0]"); + checkEvalError("cannot add value of type 'string' to a set", "l = ['a']\n" + "set() + l[0]"); } @Test public void testNsetBadCompositeItem() throws Exception { - checkEvalError("nested set item is composite (type of struct)", "set([struct(a='a')])"); + checkEvalError("sets cannot contain items of type 'struct'", "set([struct(a='a')])"); } @Test |