Module:Example/testcases: Revision history


For any version listed below, click on its date to view it. For more help, see Help:Page history and Help:Edit summary. (cur) = difference from current version, (prev) = difference from preceding version,  m = minor edit, → = section edit, ← = automatic edit summary

21 October 2024

  • curprev 18:1918:19, 21 October 2024Muskit Gergous 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..."