Changes

Jump to navigation Jump to search
602 bytes added ,  12:13, April 8, 2008
starting to write unit tests
Line 1: Line 1: −
#REDIRECT [[Template talk:Before month]]
+
If you can't see anything in the next section, then all tests have passed. Only failing tests should be visible, unless you  click on the "edit" link above. When there are no more failing tests, the template is finished.
 +
 
 +
These tests are only designed to work on April 8th of any given year.
 +
 
 +
==Automated tests==
 +
 
 +
{{after|4|8| yes | no}}
 +
 
 +
{{#ifeq: {{after|4|8| yes | no}} | yes | Should not be after April 8th yet }}
 +
 
 +
{{#ifeq: {{after|4|7| good | bad }} | bad | I thought April 7th had come and gone already.}}
 +
 
 +
==Examples==
 +
 
 +
{{after month|1|January has come and gone}}
 +
 
 +
{{before month|5|It's not May yet}}
 +
 
 +
{{after month|3|It's after March}}
Siteadmin, Check users, nsTeam1RO, nsTeam1RW, nsTeam1_talkRO, nsTeam1_talkRW, oversight, Administrators
30,650

edits

Navigation menu