Module:Sandbox/Hellknowz/Test/testcases: Difference between revisions

Content deleted Content added
add emit metadata cases, not sure
add
 
(One intermediate revision by the same user not shown)
Line 226:
-- hp ymd
{ '10 pm, 1973-05-01', '1973-05-01 22'},
 
{ '10:38:, May 1, 1973', 'Unrecognized pattern'},
{ '10:, May 1, 1973', 'Unrecognized pattern'},
{ '10, May 1, 1973', 'Unrecognized pattern'},
 
-- invalid
Line 339 ⟶ 343:
function p:test_emitMetadata() -- Must begin with 'test'
 
self:preprocess_equals_many('{{#invoke:Sandbox/Hellknowz/Test|emitMetadata|<nowiki>', '</nowiki>|dtstart=yes|dtend=yes|noTrackingCat=yes}}', {
-- different styles
Line 398 ⟶ 402:
{ '3 May 2013{{Flagicon|UK}}', '3 May 2013' },
{ '3 May 2013 {{Flagicon|UK}} {{Flag icon|USA}} ', '3 May 2013' },
{ '{{Nowrap|3 May 2013}}', '3 May 2013' },
{ '{{no break | 3 May 2013 }}', '3 May 2013' },
}