-func (s *VocabularySuite) TestSystemPropertiesFirstCharacterAlphabetic(c *check.C) {
- s.testVoc.StrictTags = true
- properties := map[string]interface{}{"arv:": "value"}
- c.Check(s.testVoc.Check(properties), check.NotNil)
- // If we expand the list of allowed characters in the future, these lists
- // may need adjustment to match.
- for _, prefix := range []string{" ", ".", "_", "-", "1"} {
- for _, suffix := range []string{"", "invalid"} {
- key := fmt.Sprintf("arv:%s%s", prefix, suffix)
- properties := map[string]interface{}{key: "value"}
- c.Check(s.testVoc.Check(properties), check.NotNil)
- }
- }
-}
-