This is an old revision of this page, as edited by TekXS(talk | contribs) at 03:45, 8 September 2023(←Created page with '-- Unit tests for [[Module:{{ROOTPAGENAME}}]]. Click talk page to run tests. local p = require('Module:UnitTests') -- Example unit test. function p:test_hello() self:preprocess_equals('{{#invoke:Example | hello}}', 'Hello, world!') end return p'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.Revision as of 03:45, 8 September 2023 by TekXS(talk | contribs)(←Created page with '-- Unit tests for [[Module:{{ROOTPAGENAME}}]]. Click talk page to run tests. local p = require('Module:UnitTests') -- Example unit test. function p:test_hello() self:preprocess_equals('{{#invoke:Example | hello}}', 'Hello, world!') end return p')
-- Unit tests for [[Module:{{ROOTPAGENAME}}]]. Click talk page to run tests.localp=require('Module:UnitTests')-- Example unit test.functionp:test_hello()self:preprocess_equals('{{#invoke:Example | hello}}','Hello, world!')endreturnp