From 3748fd91db3e14c304e5cf15063e42ef3bd9c566 Mon Sep 17 00:00:00 2001 From: Julian Kornberger Date: Thu, 4 Jan 2018 13:32:23 +0100 Subject: [PATCH] Add another test case --- parse_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/parse_test.go b/parse_test.go index 429ab9f..35b5bf6 100644 --- a/parse_test.go +++ b/parse_test.go @@ -129,6 +129,9 @@ func TestSettime(t *testing.T) { // previous year, otherwise it would be more than 6 months in the future {"Sep 10 23:00", time.Date(previousYear, time.September, 10, 23, 0, 0, 0, time.UTC)}, + + // far in the future + {"Jan 23 2019", time.Date(2019, time.January, 23, 0, 0, 0, 0, time.UTC)}, } for _, test := range tests {