Module:Wd/testcases: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 4:
 
function p:test()
self:preprocess_equals('{{#invoke:wd|property|Q55|P395}}', wdib._getValue{'P395',qid='Q55',noicon='true',onlysourcedosd='no',rank='best',maxvals='1',fwd='ALL'})
self:preprocess_equals('{{#invoke:wd|property|P395}}', '')
self:preprocess_equals('{{#invoke:wd|property|eid=Q55|P395}}', wdib._getValue{'P395',qid='Q55',noicon='true',onlysourcedosd='no',rank='best',maxvals='1',fwd='ALL'})
self:preprocess_equals('{{#invoke:wd|property|normal+|Q55|P1082}}', wdib._getValue{'P1082',qid='Q55',noicon='true',onlysourcedosd='no',rank='best',maxvals='1',fwd='ALL'})
self:preprocess_equals('{{#invoke:wd|properties|normal+|Q55|P1082}}', table.concat({wdib._getValue{'P1082',qid='Q55',noicon='true',onlysourcedosd='no',rank='p',fwd='ALL'}, wdib._getValue{'P1082',qid='Q55',noicon='true',onlysourcedosd='no',rank='n',fwd='ALL'}}, ', '))
self:preprocess_equals('{{#invoke:wd|properties|qualifier|normal+|Q55|P1082|P585}}', '')
self:preprocess_equals('{{#invoke:wd|properties|qualifier|references|normal+|Q55|P1082|P585}}', '')