1
0
mirror of https://github.com/golang/go synced 2024-11-21 21:54:40 -07:00

encoding/xml: fix test

This commit is contained in:
Randy Reddig 2024-09-04 17:40:35 -07:00
parent 67dbca9626
commit a79fce7705
No known key found for this signature in database

View File

@ -1925,7 +1925,7 @@ func TestParseErrors(t *testing.T) {
{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 ""`},
`element <foo> in namespace zzz closed by </foo> in namespace ""`},
{withDefaultHeader("\xf1"), `invalid UTF-8`},
// Header-related errors.