# HG changeset patch # User Matthew Wild # Date 1245603607 -3600 # Node ID bb0892bc968794dfa6c39df3f2a69e63db16fa8e # Parent 29a492373a7c45ec5254df85c09449e733f61a7f Add tests for days of the week diff -r 29a492373a7c -r bb0892bc9687 tests.lua --- 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