Module:Region topic/testcases: Difference between revisions
Appearance
Content deleted Content added
Creating |
No edit summary |
||
Line 4: | Line 4: | ||
local p = {} |
local p = {} |
||
local function |
local function navbox(frame,data) |
||
⚫ | |||
return "<pre>args={"..s.."}</pre>" |
|||
⚫ | |||
args.data = data |
|||
⚫ | |||
end |
end |
||
⚫ | |||
⚫ | |||
return navbox(frame,{ |
|||
⚫ | |||
⚫ | |||
⚫ | |||
local data1 = { |
|||
region = "Europe", |
region = "Europe", |
||
group1 = { |
group1 = { |
||
Line 25: | Line 23: | ||
group2 = { |
group2 = { |
||
data = { |
data = { |
||
{"FO","Faroe Islands"}, |
{"FO","Faroe Islands",the=true}, |
||
{"GG","Guernsey"}, |
{"GG","Guernsey"}, |
||
{"GI","Gibraltar"} |
{"GI","Gibraltar"} |
||
} |
} |
||
} |
} |
||
} |
}) |
||
out[#out+1] = regionTopic.luaList(data1) |
|||
out[#out+1] = pre('data=data1') |
|||
out[#out+1] = regionTopic.luaMain({name=pageName,data=data1}) |
|||
out[#out+1] = pre('"Flag of",data=data1') |
|||
out[#out+1] = regionTopic.luaMain({name=pageName,"Flag of",data=data1}) |
|||
return table.concat(out,"\n") |
|||
end |
end |
||
Revision as of 13:13, 30 December 2015
![]() | This is the test cases page for the module Module:Region topic. Results of the test cases. |
--This module returns a set of testcases for [[Module:Region topic]].
--See its output on its talk page.
local p = {}
local function navbox(frame,data)
local args = frame.args
args.name = "Module:Region topic/tests"
args.data = data
return require("Module:Region topic").luaMain(args)
end
function p.data1(frame)
return navbox(frame,{
region = "Europe",
group1 = {
data = {
{"AD","Andorra"},
{"AL","Albania"},
{"AT","Austria"}
}
},
group2 = {
data = {
{"FO","Faroe Islands",the=true},
{"GG","Guernsey"},
{"GI","Gibraltar"}
}
}
})
end
return p