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:03, 14 August 2023 (Created a stub). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
-- work in progress
-- This is going to contain centralized testcases, which are currently triplicated.

local p = {}

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

-- contains tables, which contain test inputs for the module and corresponding correct outputs
-- These testcases were copied from the old testcase files ([[Module:wd/testcases/*]]).
p.testcaseTable = {
	{"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'}}
}

return p