Jump to content

Module:Example/testcases: Revision history


Here you can take a look at older versions of this page, and compare different versions.

  • Click the date to see an old version.
  • To compare two versions (changes), click the circles (in separate columns) next to them. Then click the Compare button to see the differences between them.
  • You can use (cur) to compare an old version with the newest (or current) one. You can use (last) to compare any version with the one just before it.
  • The letter m next to a change means that the change was marked as small (or minor).

4 November 2021

  • curlast 01:4901:49, 4 November 2021 MeritedElm63160 talk changes 478 bytes +478 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') end return p"