diff options
author | Frédéric Guillot <fred@miniflux.net> | 2017-12-16 11:25:18 -0800 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2017-12-16 11:25:18 -0800 |
commit | 27196589fbd36f5f840e51b59bd6253d0f865db3 (patch) | |
tree | 4896268c735528045e4064ace92a2a75280585b8 /vendor/github.com/tdewolff/parse/xml/lex_test.go | |
parent | 231ebf2daa9c024fbe99277f57935444946824bd (diff) |
Add FeedIcon API call and update dependencies
Diffstat (limited to 'vendor/github.com/tdewolff/parse/xml/lex_test.go')
-rw-r--r-- | vendor/github.com/tdewolff/parse/xml/lex_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vendor/github.com/tdewolff/parse/xml/lex_test.go b/vendor/github.com/tdewolff/parse/xml/lex_test.go index f8cdd17..d7d0e4a 100644 --- a/vendor/github.com/tdewolff/parse/xml/lex_test.go +++ b/vendor/github.com/tdewolff/parse/xml/lex_test.go @@ -155,6 +155,7 @@ func TestErrors(t *testing.T) { col int }{ {"a\x00b", 2}, + {"<a\x00>", 3}, } for _, tt := range errorTests { t.Run(tt.xml, func(t *testing.T) { @@ -165,7 +166,8 @@ func TestErrors(t *testing.T) { if tt.col == 0 { test.T(t, l.Err(), io.EOF) } else if perr, ok := l.Err().(*parse.Error); ok { - test.T(t, perr.Col, tt.col) + _, col, _ := perr.Position() + test.T(t, col, tt.col) } else { test.Fail(t, "bad error:", l.Err()) } |