FANDOM


-- Unit tests.  Click talk page to run tests.
-- Nice beautifier: http://blackmiaool.com/lua-beautify/
local scriptList = require("Module:Scriptlist")
local testData = [[<scriptdata>Jumbles<dataseparator/>An anagram game for Special:Chat
|Chat</scriptdata><scriptdata>Boom<dataseparator/>A bomb
|Bomby stuff</scriptdata>]]
local p ={
    extractDplData={--<==function being tested
        options= {nowiki=false}, --<== options
        tests = {
            equals_deep ={ --<== Test name
                -- Parameters      - Expected result
                {'Table comparison' ,{ {
                    category = "Chat",
                    description = "An anagram game for Special:Chat",
                    name = "Jumbles"
                }, {
                    category = "Bomby stuff",
                    description = "A bomb",
                    name = "Boom"
                } }, scriptList.extractDplData(testData)}
 
            },
        },
    },
}
return p

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.