FANDOM


--<pre> Unit tests for [[Module:Utility]]. Click talk page to run tests.
local p = require('Module:UnitTests')
local utility = require('module:utility')
 
local p ={
 
    getArgs={ -- function name
        options={nowiki=true},
        tests = {
            preprocess_equals_many ={
                {'', 'table'},
                {'aaa', 'table'},
                {'aaa|aaa', 'table'},
            },
        },
    },
    getdate = {
        options={nowiki=true},
        tests = {
            equals= { 
                {"test getdate","1266840000",tostring(os.time({month=2,year=2010,day=22}))},
            },
        }
    }
}
 
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.