diff options
Diffstat (limited to 'parse_test.go')
-rw-r--r-- | parse_test.go | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/parse_test.go b/parse_test.go index b47dc14..3fbf0f6 100644 --- a/parse_test.go +++ b/parse_test.go @@ -4,8 +4,6 @@ import ( "reflect" "strings" "testing" - - "github.com/davecgh/go-spew/spew" ) var parseTests = map[string]*Document{ @@ -464,17 +462,12 @@ func TestParse(t *testing.T) { t.Fatalf("ParseDocument(%q): error: %v", k, err) } if !documentEqual(d, v) { - t.Fatalf("ParseDocument(%q):\nexpected:\n%s\n got:\n%s", k, reprDoc(v), reprDoc(d)) + t.Fatalf("ParseDocument(%q):\nexpected:\n%#v\n got:\n%#v", k, v, d) } }) } } -func reprDoc(d *Document) string { - //return fmt.Sprintf("Document{Title: %q, Links: %+v, Site: %+v, Content: %s}", d.Title, d.Links, d.Site, reprContent(d.Content)) - return spew.Sdump(d) -} - func documentEqual(a, b *Document) bool { if a.Title != b.Title { return false |