モジュール:M/testcases

-- [[Module:M]]のユニットテスト例です。ノートをクリックして動作確認をしてください。
local p = require('Module:UnitTests')

function p:test_001simple()
    self:preprocess_equals_preprocess('{{#invoke:M|main}}', '{{#invoke:M/sandbox|main}}', {nowiki=1})
end

function p:test_002complex()
	self:preprocess_equals_preprocess_many('{{#invoke:M|main|', '}}', '{{#invoke:M/sandbox|main|', '}}', {
        {''}, {'l'}, {'s'}, {'b'}, {'w'}, {'j'}, {'t'}, {'?'}
    },{nowiki=1})
end

return p