Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:UnitTests/doc: Revision history

From Kenshi Wiki

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

12 March 2025

8 March 2025

2 March 2025

16 February 2025

14 February 2025

13 February 2025

  • curprev 06:0906:09, 13 February 2025 Prd talk contribs 3,590 bytes +3,590 Created page with "UnitTests provides a unit test facility that can be used by other scripts using '''require'''. Following is an example: <syntaxhighlight lang="lua"> -- Unit tests for Module:Bananas. Click talk page to run tests. local p = require('Module:UnitTests') function p:test_hello() self:preprocess_equals('{{#invoke:Bananas| hello}}', 'Hello World!') end return p </syntaxhighlight> This would be executed with <code><nowiki>{{#invoke: Bananas/testcases | run_tests}}</n..."