Module:RQ:pi:Sai Kam Mong/testcases

local tests = require('Module:UnitTests')

function tests:test_direct -- here be the tests -- simple case: tests:preprocess_equals_preprocess(		"",		"") -- nested string tests:preprocess_equals_preprocess(		"",		"") -- No highlighting tests:preprocess_equals_preprocess(		"",		"") -- Wrong page tests:preprocess_equals(		"",		"There are no passages from page 242") -- Wrong ID: tests:preprocess_equals_preprocess(		"",		"No passage dubbed \"nosuch\" on page 241") -- No word specified: tests:preprocess_equals_preprocess(		"",		"") -- No ID specified: tests:preprocess_equals_preprocess(		"",		"Passage ID is missing") -- Page is not a number tests:preprocess_equals(		"",		"There are no passages from page xxx") -- No page number tests:preprocess_equals(		"",		"Invalid or missing page number") end

function tests:test_template -- here be the tests -- simple case: tests:preprocess_equals_preprocess(		"",		"") -- nested string tests:preprocess_equals_preprocess(		"",		"") -- No highlighting tests:preprocess_equals_preprocess(		"",		"") -- Wrong page tests:preprocess_equals_preprocess(		"",		"") -- Wrong ID: tests:preprocess_equals_preprocess(		"",		"") -- No word specified: tests:preprocess_equals_preprocess(		"",		"") -- No ID specified: tests:preprocess_equals_preprocess(		"",		"") -- Page is not a number tests:preprocess_equals_preprocess(		"",		"") -- No page number tests:preprocess_equals_preprocess(		"",		"") end

return tests