FANDOM


--<pre> Unit tests.  Click talk page to run tests.
local gDate = require("Dev:Date")
local p ={
    main={--functioname
        options={nowiki=false}, --options 
        tests = {
            preprocess_equals_many ={
                {'diff|2012/11/20|2012/11/21', '-1'},
                {'diff|1916/09/03|2012/11/21', '-35143'},
                {'diff|2012/11/21|1916/09/03', '35143'},
                 {'diff|1916/09/03', tostring(gDate.diff('1916/09/03',os.date("%Y/%m/%d")):spandays()) },
                {'getday|2015/01/22',"22"},
                {'isleapyear|1916/09/03', 'true'},
                {'isleapyear|1913', 'false'},
                {'epoch', tostring(gDate("jan 1 1970"))},
                {'adddays|2012/11/20|5', 'Sun Nov 25 2012 00:00:00'},
            },
        },
    },
}
 
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.