Module:Time ago/testcases: Difference between revisions

Content deleted Content added
m Fix missing brackets.
I'm guessing I shouldn't use templates in the comparisons here.
Line 13:
self:preprocess_equals('{{#invoke:TimeAgo|timeAgo|July 1 2009|magnitude=months}}', '{{Time ago|July 1 2009|magnitude=minutes}}')
self:preprocess_equals('{{#invoke:TimeAgo|timeAgo|July 1 2049|magnitude=months}}', '{{Time ago|July 1 2049|magnitude=months}}')
self:preprocess_equals('{{#invoke:TimeAgo|timeAgo|Julio 1}}', '{{Time<strong ago|Julioclass="error">Error: 1}}first parameter cannot be parsed as a date or time.</strong>')
self:preprocess_equals('{{#invoke:TimeAgo|timeAgo|July 1 2009|magnitude=fruits}}', '{{Time ago|July 1 2009|July 1 2009|magnitude=fruits}}')
self:preprocess_equals('{{#invoke:TimeAgo|timeAgo}}', '{{Time ago}}')