Sun, 21 Jun 2009 18:00:07 +0100
Add tests for days of the week
tests.lua | file | annotate | diff | comparison | revisions |
--- a/tests.lua Sun Jun 21 17:55:38 2009 +0100 +++ b/tests.lua Sun Jun 21 18:00:07 2009 +0100 @@ -39,6 +39,16 @@ check("next week", 604800); check("next year", 31536000); +check("monday", 345600); +check("Monday", 345600); +check("tuesday", 432000); +check("wednesday", 518400); +check("thursday", 604800); +check("friday", 86400); +check("the friday after tomorrow", 691200); +check("the friday morning after tomorrow", 721800) +check("the friday afternoon after tomorrow", 736200) + if all_ok then print("OK"); end