From 902e92886352ba8e409e084c6f3d3276e9fdf987 Mon Sep 17 00:00:00 2001 From: Harm Aarts Date: Thu, 5 Dec 2013 12:56:00 +0100 Subject: [PATCH] Revert "Adds test" This reverts commit b311fe3f8dab10a6c8811dcc2204b7c156d8b537. --- feed_test.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/feed_test.go b/feed_test.go index c069660..fad7b7f 100644 --- a/feed_test.go +++ b/feed_test.go @@ -7,20 +7,6 @@ import ( var items []*Item -func Test_NewItem(t *testing.T) { - content, _ := ioutil.ReadFile("testdata/initial.atom") - feed := New(1, true, chanHandler, itemHandler) - err := feed.FetchBytes("http://example.com", content, nil) - if err != nil { t.Error(err) } - - content, _ = ioutil.ReadFile("testdata/initial_plus_one_new.atom") - feed.FetchBytes("http://example.com", content, nil) - expected := "Second title" - if expected != items[0].Title { - t.Errorf("Expected %s, got %s", expected, items[0].Title) - } -} - func TestFeed(t *testing.T) { urilist := []string{ //"http://cyber.law.harvard.edu/rss/examples/sampleRss091.xml", // Non-utf8 encoding.