diff options
author | Michael Staib <mstaib@google.com> | 2017-02-23 19:06:31 +0000 |
---|---|---|
committer | Irina Iancu <elenairina@google.com> | 2017-02-24 08:29:51 +0000 |
commit | 5e9e1949f4c08ce09665b92aadf7ec7e518aab6a (patch) | |
tree | 16afc722aa4e692a311271e932e7806d5e1f8c7d /src/test/java/com/google/devtools/build/lib/syntax | |
parent | 56d66ff8b8616b6ec07c2c604da5d717c0a91aff (diff) |
Add the LABEL_KEYED_STRING_DICT type for attributes.
This enables both native and Skylark rules to declare attributes which
have labels/Targets as keys, and have string values.
--
PiperOrigin-RevId: 148365033
MOS_MIGRATED_REVID=148365033
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/syntax')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/syntax/TypeTest.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/syntax/TypeTest.java b/src/test/java/com/google/devtools/build/lib/syntax/TypeTest.java index a0e36fc7bd..a4e42c7a32 100644 --- a/src/test/java/com/google/devtools/build/lib/syntax/TypeTest.java +++ b/src/test/java/com/google/devtools/build/lib/syntax/TypeTest.java @@ -493,7 +493,8 @@ public class TypeTest { Type.STRING_DICT.convert("some string", null); fail(); } catch (ConversionException e) { - assertThat(e).hasMessage("Expected a map for dictionary but got a java.lang.String"); + assertThat(e).hasMessage( + "expected value of type 'dict(string, string)', but got \"some string\" (string)"); } } @@ -509,4 +510,4 @@ public class TypeTest { }, value); return result.build(); } -}
\ No newline at end of file +} |