Skip to content

Commit

Permalink
test: add cases from araddon#28
Browse files Browse the repository at this point in the history
  • Loading branch information
mehanizm committed Aug 9, 2021
1 parent f82c874 commit ea6d700
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions parseany_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,13 @@ var testInputs = []dateTest{
{in: "08.21.71", out: "1971-08-21 00:00:00 +0000 UTC"},
// dd.mm.yyyy
{in: "23.07.1938", out: "1938-07-23 00:00:00 +0000 UTC"},
// dd/mm/yyyy
{in: "23/07/1938", out: "1938-07-23 00:00:00 +0000 UTC"},
{in: "31/3/2014", out: "2014-03-31 00:00:00 +0000 UTC"},
{in: "31/03/2014", out: "2014-03-31 00:00:00 +0000 UTC"},
{in: "21/08/71", out: "1971-08-21 00:00:00 +0000 UTC"},
{in: "19/03/2012 10:11:59", out: "2012-03-19 10:11:59 +0000 UTC"},
{in: "19/03/2012 10:11:59.3186369", out: "2012-03-19 10:11:59.3186369 +0000 UTC"},
// yyyymmdd and similar
{in: "2014", out: "2014-01-01 00:00:00 +0000 UTC"},
{in: "20140601", out: "2014-06-01 00:00:00 +0000 UTC"},
Expand Down

0 comments on commit ea6d700

Please sign in to comment.