1
0
mirror of https://github.com/golang/go synced 2024-11-25 09:57:57 -07:00

net/mail: correctly compare parsed times in the test.

Fixes #2522.

R=golang-dev, bradfitz, alex.brainman
CC=golang-dev
https://golang.org/cl/5449084
This commit is contained in:
David Symonds 2011-12-05 10:05:29 +11:00
parent 214ec7b547
commit dbaeb0cf13

View File

@ -105,7 +105,7 @@ func TestDateParsing(t *testing.T) {
t.Errorf("Failed parsing %q: %v", test.dateStr, err) t.Errorf("Failed parsing %q: %v", test.dateStr, err)
continue continue
} }
if !reflect.DeepEqual(date, test.exp) { if !date.Equal(test.exp) {
t.Errorf("Parse of %q: got %+v, want %+v", test.dateStr, date, test.exp) t.Errorf("Parse of %q: got %+v, want %+v", test.dateStr, date, test.exp)
} }
} }