Module:Sandbox/Hellknowz/Test/testcases: Difference between revisions

Content deleted Content added
add dash to span ranges
add exceptions for cases
Line 21:
{ 'Jan 2013', '2013-01' },
{ 'Dec 2013', '2013-12' },
{ 'Dec. 2013', '2013-12' },
{ 'June 1013', 'Invalid date/time' },
{ 'June 2113', '2113-06' },
Line 44 ⟶ 45:
{ '12 Blobember 2013', 'Unrecognized pattern' },
{ '12 Dec 2013', '2013-12-12' },
{ '12 Dec. 2013', '2013-12-12' },
{ '12 June 96', 'Unrecognized pattern' },
 
Line 50 ⟶ 52:
{ 'August 27, 2013', '2013-08-27' },
{ 'November 30, 2013', '2013-11-30' },
{ 'Nov. 30, 2013', '2013-11-30' },
{ 'June 32, 2013', 'Invalid date/time' },
{ 'June 31, 2013', 'Invalid date/time' },
Line 80 ⟶ 83:
{ '2013-00-12', 'Invalid date/time' },
{ '2013-05', '2013-05' },
{ '2003-11', 'Unrecognized pattern' }, -- for now (ambiguous case)
 
{ '2003-13', 'Unrecognized pattern' }, -- for now
{ '2013-11', 'Unrecognized pattern' }, -- for now
{ '2013-13', 'Unrecognized pattern' }, -- for now
{ '1999-11', 'Unrecognized pattern' }, -- for now
{ '1906-08', 'Unrecognized pattern' }, -- for now
-- hms
{ '10:38:27', '10:38:27'},