Muskit Gergous
Created page with "UnitTests provides a unit test facility that can be used by other scripts using '''require'''. See Bharatpedia:Lua#Unit_testing for details. The following is a sample from Module:Example/testcases: {{#tag:syntaxhighlight| -- Unit tests for Module:Example. Click talk page to run tests. local p = require('Module:UnitTests') function p:test_hello() self:preprocess_equals('{{#invoke:Example | hello}}', 'Hello World!') end return p |lang="lua"}} The talk p..."