From d62b2f6de6854b107601ea82611b845c6f830237 Mon Sep 17 00:00:00 2001 From: clsr Date: Fri, 18 Aug 2017 14:21:50 +0200 Subject: Remove test dependency --- parse_test.go | 9 +-------- 1 file changed, 1 insertion(+), 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 -- cgit