~john-koepi/ubuntu/trusty/golang/default

« back to all changes in this revision

Viewing changes to src/pkg/encoding/json/tagkey_test.go

  • Committer: Package Import Robot
  • Author(s): Ondřej Surý
  • Date: 2012-05-02 15:44:59 UTC
  • mfrom: (14.1.12 sid)
  • Revision ID: package-import@ubuntu.com-20120502154459-wcmy8ao1325ml619
Tags: 2:1.0.1-1
* Imported Upstream version 1.0.1
* Apply godoc patch to display package list correctly (Closes: #669354)

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
        V string `json:"text/html%"` // http://golang.org/issue/2718
41
41
}
42
42
 
 
43
type punctuationTag struct {
 
44
        V string `json:"!#$%&()*+-./:<=>?@[]^_{|}~"` // http://golang.org/issue/3546
 
45
}
 
46
 
43
47
type emptyTag struct {
44
48
        W string
45
49
}
73
77
        {badFormatTag{"Orfevre"}, "Orfevre", "Y"},
74
78
        {badCodeTag{"Reliable Man"}, "Reliable Man", "Z"},
75
79
        {percentSlashTag{"brut"}, "brut", "text/html%"},
 
80
        {punctuationTag{"Union Rags"}, "Union Rags", "!#$%&()*+-./:<=>?@[]^_{|}~"},
76
81
}
77
82
 
78
83
func TestStructTagObjectKey(t *testing.T) {