Jump to content

Module talk:Example/testcases

Page contents not supported in other languages.
Wikipedia ལས།

All 10 tests passed.

test_Name2
Text Expected Actual
Template:Tick {{#invoke:Example|Name2}} Lonely Lonely
Template:Tick {{#invoke:Example|Name2|1}} Lonely Lonely
Template:Tick {{#invoke:Example|Name2|1|2}} Be positive! Be positive!
Template:Tick {{#invoke:Example|Name2|2|1}} 1 1
test_count_fruit
Text Expected Actual
Template:Tick {{#invoke:Example|count_fruit|bananas=5|apples=3}} I have 5 bananas and 3 apples I have 5 bananas and 3 apples
Template:Tick {{#invoke:Example|count_fruit|bananas=1|apples=1}} I have 1 banana and 1 apple I have 1 banana and 1 apple
Template:Tick {{#invoke:Example|count_fruit|bananas=Not a number|apples=Not a number}} I have 0 bananas and 0 apples I have 0 bananas and 0 apples
Template:Tick {{#invoke:Example|count_fruit}} I have 0 bananas and 0 apples I have 0 bananas and 0 apples
test_hello
Text Expected Actual
Template:Tick {{#invoke:Example | hello}} Hello World! Hello World!
test_hello_to
Text Expected Actual
Template:Tick {{#invoke:Example|hello_to|Fred}} Hello, Fred! Hello, Fred!
"https://dz.wikipedia.org/w/index.php?title=Module_talk:Example/testcases&oldid=31801" ལས་ སླར་འདྲེན་འབད་ཡོདཔ།