From df4aa89a5e7acb315655f193e7f549e8d32367e2 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 13 Jan 2012 05:11:45 +0000 Subject: libgo: Update to weekly.2011-12-22. From-SVN: r183150 --- libgo/go/archive/zip/zip_test.go | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libgo/go/archive/zip/zip_test.go') diff --git a/libgo/go/archive/zip/zip_test.go b/libgo/go/archive/zip/zip_test.go index 2075715..8aab2b6 100644 --- a/libgo/go/archive/zip/zip_test.go +++ b/libgo/go/archive/zip/zip_test.go @@ -11,6 +11,7 @@ import ( "fmt" "io" "testing" + "time" ) type stringReaderAt string @@ -55,3 +56,13 @@ func TestOver65kFiles(t *testing.T) { } } } + +func TestModTime(t *testing.T) { + var testTime = time.Date(2009, time.November, 10, 23, 45, 58, 0, time.UTC) + fh := new(FileHeader) + fh.SetModTime(testTime) + outTime := fh.ModTime() + if !outTime.Equal(testTime) { + t.Errorf("times don't match: got %s, want %s", outTime, testTime) + } +} -- cgit v1.1