aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/xml/xml_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/encoding/xml/xml_test.go')
-rw-r--r--src/encoding/xml/xml_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/encoding/xml/xml_test.go b/src/encoding/xml/xml_test.go
index 2c985f7c70..c3848c3873 100644
--- a/src/encoding/xml/xml_test.go
+++ b/src/encoding/xml/xml_test.go
@@ -1346,6 +1346,8 @@ func TestParseErrors(t *testing.T) {
{withDefaultHeader(`<!- not ok -->`), `invalid sequence <!- not part of <!--`},
{withDefaultHeader(`<!-? not ok -->`), `invalid sequence <!- not part of <!--`},
{withDefaultHeader(`<![not ok]>`), `invalid <![ sequence`},
+ {withDefaultHeader(`<zzz:foo xmlns:zzz="http://example.com"><bar>baz</bar></foo>`),
+ `element <foo> in space zzz closed by </foo> in space ""`},
{withDefaultHeader("\xf1"), `invalid UTF-8`},
// Header-related errors.
@@ -1379,7 +1381,7 @@ func TestParseErrors(t *testing.T) {
continue
}
if !strings.Contains(err.Error(), test.err) {
- t.Errorf("parse %s: can't find %q error sudbstring\nerror: %q", test.src, test.err, err)
+ t.Errorf("parse %s: can't find %q error substring\nerror: %q", test.src, test.err, err)
continue
}
}