Module:POTD kind/testcases
Appearance
| This is the test cases page for the module Module:POTD kind. Results of the test cases. |
-- Unit tests for [[Module:{{ROOTPAGENAME}}]]. Click talk page to run tests.
local p = require('Module:UnitTests')
function p:test_kind()
local tests = {
['2026-01-18']='video', -- [[Template:POTD protected/2026-01-18]]
['2026-01-20']='pictures', -- [[Template:POTD protected/2026-01-20]]
['2026-01-29']='picture', -- [[Template:POTD protected/2026-01-29]]
['2026-01-30']='video', -- [[Template:POTD protected/2026-01-30]]
}
for date, expected_result in pairs(tests)
do
self:preprocess_equals('{{#invoke:POTD kind|kind|date=' .. date .. '}}', expected_result)
end
end
return p