Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dimfishr authored and Tieske committed Jul 18, 2021
1 parent e309bbd commit b31ecb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/date_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ describe("Testing the 'date' module", function()
assert(date("Jul 27 2006 PDT") == date(2006,07,27,7,0,0))
-- Date Format. Short dates can use either a "/" or "-" date separator,
-- but must follow the month/day/year format
assert(date("02-03-04")==date(1904,02,03))
assert(date("02-03-04")==date(2004,02,03))
assert(date("12/25/98")==date(1998,12,25))
-- Long dates of the form "July 10 1995" can be given with the year, month,
-- and day in any order, and the year in 2-digit or 4-digit form. If you use
-- the 2-digit form, the year must be greater than or equal to 70.
assert(date("Feb-03-04")==date(1904,02,03))
assert(date("Feb-03-04")==date(2004,02,03))
assert(date("December 25 1998")==date(1998,12,25))
-- Follow the year with BC or BCE to indicate that the year is before common era.
assert(date("Feb 3 0003 BC")==date(-2,02,03))
Expand Down

0 comments on commit b31ecb8

Please sign in to comment.