Add tests for days of the week

Sun, 21 Jun 2009 18:00:07 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sun, 21 Jun 2009 18:00:07 +0100
changeset 2
bb0892bc9687
parent 1
29a492373a7c
child 3
487f8d7b81b7

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

mercurial