Jump to content

Module:AutosortTable/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Jfd34 (talk | contribs) at 11:40, 15 February 2014 (Created page with '-- Example Unit tests for Module:Bananas. Click talk page to run tests. local p = {} function p:test_hello(frame) return frame:preprocess([[ {{#invoke:...'). 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)
-- Example Unit tests for [[Module:Bananas]]. Click talk page to run tests.
local p = {}

function p:test_hello(frame)
    return frame:preprocess([[
{{#invoke: AutosortTable|create

| class = wikitable
| style = width: 50%;
| sep = --
| order = 2, 1
| nsort = 2
| header =  -- Name -- Age

| -- Bob -- 20
| -- Peter -- 35
| -- John -- 35
| -- James -- 50
| background-color: #FFDDDD -- Henry -- 45

}}
]])
end

return p