-- 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")
local wd = require("Module:Wd")  -- temporary, should be converted to wdib

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/[1, 2, 3]).
	{"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"}},
	{"property|eid=|P395", ""},
	{"property|" .. wd._title{"Q55"} .. "|P395", ""},
	{"property|:" .. wd._title{"Q55"} .. "|P395", wdib._getValue{"P395",qid="Q55",noicon="true",osd="no",rank="best",maxvals="1",fwd="ALL"}},
	{"property|page=" .. wd._title{"Q55"} .. "|P395", wdib._getValue{"P395",qid="Q55",noicon="true",osd="no",rank="best",maxvals="1",fwd="ALL"}},
	{"property|page=:" .. wd._title{"Q55"} .. "|P395", wdib._getValue{"P395",qid="Q55",noicon="true",osd="no",rank="best",maxvals="1",fwd="ALL"}},
	{"property|page=|P395", ""},
	{"property|edit|Q55|P395", wdib._getValue{"P395",qid="Q55",noicon="true",osd="no",rank="best",maxvals="1",fwd="ALL"} .. " [[File:OOjs UI icon edit-ltr-progressive.svg|frameless|text-top|10px|alt=Edit this on Wikidata|link=https://www.wikidata.org/wiki/Q55?uselang=en#P395|Edit this on Wikidata]]"},
	{"property|edit@end|Q55|P395", wdib._getValue{"P395",qid="Q55",noicon="true",osd="no",rank="best",maxvals="1",fwd="ALL"} .. "<span style=\"float:right\">[[File:OOjs UI icon edit-ltr-progressive.svg|frameless|text-top|10px|alt=Edit this on Wikidata|link=https://www.wikidata.org/wiki/Q55?uselang=en#P395|Edit this on Wikidata]]</span>"},
	{"property|eid=Q55|Q2|P31", wdib._getValue{"P31",qid="Q2",linked="false",noicon="true",osd="no",rank="best",maxvals="1",fwd="ALL"}},
	{"property|page=" .. wd._title{"Q55"} .. "|Q2|P31", wdib._getValue{"P31",qid="Q2",linked="false",noicon="true",osd="no",rank="best",maxvals="1",fwd="ALL"}},
	{"property|page=" .. wd._title{"Q55"} .. "|eid=Q2|P31", wdib._getValue{"P31",qid="Q2",linked="false",noicon="true",osd="no",rank="best",maxvals="1",fwd="ALL"}},
}
"https://si.wikipedia.org/w/index.php?title=Module:Wd/sandbox/testcases/testcaseTable&oldid=610675" වෙතින් සම්ප්‍රවේශනය කෙරිණි