Module:Utility/testcases

-- 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