Module:Time ago/testcases: Difference between revisions

Content deleted Content added
m Fix tag.
Every test should pass now.
Line 20:
self:preprocess_equals('{{#invoke:TimeAgo|timeAgo|15 September 2013}}', monthssincesep13 .. ' months ago')
self:preprocess_equals('{{#invoke:TimeAgo|timeAgo|{{CURRENTTIMESTAMP}}}}', '0 seconds ago')
self:preprocess_equals('{{#invoke:TimeAgo|timeAgo|15 September 2013|purge=yes}}', monthssincesep13 .. '{{Time months ago|1 January<span 2012|purgeclass=yes}}"plainlinks">([//en.wikipedia.org/w/index.php?title=Module_talk:TimeAgo/testcases&action=purge purge])</span>')
self:preprocess_equals('{{#invoke:TimeAgo|timeAgo|{{CURRENTTIMESTAMP}}|purge=yes}}', '{{Time0 seconds ago|{{CURRENTTIMESTAMP}}|purge <span class=yes}}"plainlinks">([//en.wikipedia.org/w/index.php?title=Module_talk:TimeAgo/testcases&action=purge purge])</span>')
self:preprocess_equals('{{#invoke:TimeAgo|timeAgo|July 1 2009}}', yearssincejul09 .. ' years ago')
self:preprocess_equals('{{#invoke:TimeAgo|timeAgo|July 1 2009|magnitude=minutes}}', minutessincejul09 .. ' minutes ago')