Browse Source

Add another test case

Julian Kornberger 8 years ago
parent
commit
3748fd91db
1 changed files with 3 additions and 0 deletions
  1. 3 0
      parse_test.go

+ 3 - 0
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 {