Jump to content

Module:Wd/sandbox/testcases/testcaseTable

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Janhrach (talk | contribs) at 13:44, 14 August 2023 (Janhrach moved page Module:Wd/sandbox/testcases/common to Module:Wd/sandbox/testcases/testcaseTable without leaving a redirect: Better title). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
-- work in progress
-- This is going to contain centralized testcases, which are currently triplicated.

-- dependencies used for generating expected outputs 
local wdib = require('Module:WikidataIB')

return {
    -- structure:tables, which contain test inputs for the module and corresponding correct outputs
    
    -- These testcases were copied from the old testcase files ([[Module:wd/testcases/*]]).
	{"property|Q55|P395", wdib._getValue{'P395',qid='Q55',noicon='true',osd='no',rank='best',maxvals='1',fwd='ALL'}},
	{"property|P395", ""},
	{"property|eid=Q55|P395", wdib._getValue{'P395',qid='Q55',noicon='true',osd='no',rank='best',maxvals='1',fwd='ALL'}}
}