From 1a6b1dd0de3adc37e76300290dccc1a74bc5d7fc Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Wed, 2 Mar 2011 15:05:52 -0500 Subject: [PATCH] xml: fix typo in test. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4218042 --- src/pkg/xml/read_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pkg/xml/read_test.go b/src/pkg/xml/read_test.go index 71ceddce4a..a6b9a8ed18 100644 --- a/src/pkg/xml/read_test.go +++ b/src/pkg/xml/read_test.go @@ -13,16 +13,16 @@ import ( func TestUnmarshalFeed(t *testing.T) { var f Feed - if err := Unmarshal(StringReader(rssFeedString), &f); err != nil { + if err := Unmarshal(StringReader(atomFeedString), &f); err != nil { t.Fatalf("Unmarshal: %s", err) } - if !reflect.DeepEqual(f, rssFeed) { - t.Fatalf("have %#v\nwant %#v", f, rssFeed) + if !reflect.DeepEqual(f, atomFeed) { + t.Fatalf("have %#v\nwant %#v", f, atomFeed) } } // hget http://codereview.appspot.com/rss/mine/rsc -const rssFeedString = ` +const atomFeedString = ` Code Review - My issueshttp://codereview.appspot.com/2009-10-04T01:35:58+00:00rietveld<>rietveld: an attempt at pubsubhubbub 2009-10-04T01:35:58+00:00email-address-removedurn:md5:134d9179c41f806be79b3a5f7877d19a @@ -115,7 +115,7 @@ type Text struct { type Time string -var rssFeed = Feed{ +var atomFeed = Feed{ XMLName: Name{"http://www.w3.org/2005/Atom", "feed"}, Title: "Code Review - My issues", Link: []Link{