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

Module:Example/testcases: 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.

2 March 2025

  • curprev 03:5903:59, 2 March 2025 Prd talk contribs 1,126 bytes +1,126 Created page with "-- 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 function p:test_hello_to() self:preprocess_equals('{{#invoke:Example|hello_to|Fred}}', 'Hello, Fred!') end function p:test_count_fruit() self:preprocess_equals('{{#invoke:Example|count_fruit|bananas=5|apples=3}}', 'I have 5 bananas and 3 apples') self:p..."