summaryrefslogtreecommitdiff
path: root/libgo/go/encoding/xml/xml_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/encoding/xml/xml_test.go')
-rw-r--r--libgo/go/encoding/xml/xml_test.go34
1 files changed, 0 insertions, 34 deletions
diff --git a/libgo/go/encoding/xml/xml_test.go b/libgo/go/encoding/xml/xml_test.go
index f43a5e7eebc..dad6ed98c1b 100644
--- a/libgo/go/encoding/xml/xml_test.go
+++ b/libgo/go/encoding/xml/xml_test.go
@@ -797,37 +797,3 @@ func TestIssue12417(t *testing.T) {
}
}
}
-
-func TestIssue19333(t *testing.T) {
- type X struct {
- XMLName Name `xml:"X"`
- A int `xml:",attr"`
- C int
- }
-
- var tests = []struct {
- input string
- ok bool
- }{
- {`<X></X>`, true},
- {`<X A=""></X>`, true},
- {`<X A="bad"></X>`, true},
- {`<X></X>`, true},
- {`<X><C></C></X>`, false},
- {`<X><C/></X>`, false},
- {`<X><C>bad</C></X>`, false},
- }
-
- for _, tt := range tests {
- err := Unmarshal([]byte(tt.input), new(X))
- if tt.ok {
- if err != nil {
- t.Errorf("%s: unexpected error: %v", tt.input, err)
- }
- } else {
- if err == nil {
- t.Errorf("%s: unexpected success", tt.input)
- }
- }
- }
-}