diff options
author | clsr <clsr@clsr.net> | 2017-08-18 14:21:50 +0200 |
---|---|---|
committer | clsr <clsr@clsr.net> | 2017-08-18 14:21:50 +0200 |
commit | d62b2f6de6854b107601ea82611b845c6f830237 (patch) | |
tree | ad2efc57c5a7cd7022bd2beecf5abbde1ad6edef | |
parent | 26248678aafc2f8e277d4bdafc116f2b349b02c5 (diff) | |
download | cnm-go-d62b2f6de6854b107601ea82611b845c6f830237.tar.gz cnm-go-d62b2f6de6854b107601ea82611b845c6f830237.zip |
Remove test dependencyv0.1.1
-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 |