Jump to content

Module talk:Example/testcases

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

All 10 tests passed.

test_Name2

test_Name2
Text Expected Actual
checkY {{#invoke:Example|Name2}} Lonely
checkY {{#invoke:Example|Name2|1}} Lonely
checkY {{#invoke:Example|Name2|1|2}} Be positive!
checkY {{#invoke:Example|Name2|2|1}} 1

test_count_fruit

test_count_fruit
Text Expected Actual
checkY {{#invoke:Example|count_fruit|bananas=5|apples=3}} I have 5 bananas and 3 apples
checkY {{#invoke:Example|count_fruit|bananas=1|apples=1}} I have 1 banana and 1 apple
checkY {{#invoke:Example|count_fruit|bananas=Not a number|apples=Not a number}} I have 0 bananas and 0 apples
checkY {{#invoke:Example|count_fruit}} I have 0 bananas and 0 apples

test_hello

test_hello
Text Expected Actual
checkY {{#invoke:Example | hello}} Hello World!

test_hello_to

test_hello_to
Text Expected Actual
checkY {{#invoke:Example|hello_to|Fred}} Hello, Fred!

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant