Module talk:Example/testcases

Add topic
From 2021pedia

All tests passed.

test_count_fruit
Text Expected Actual
checkY {{#invoke:Example|count_fruit|bananas=5|apples=3}} I have 5 bananas and 3 apples I have 5 bananas and 3 apples
test_hello
Text Expected Actual
checkY {{#invoke:Example | hello}} Hello World! Hello World!
test_hello_to
Text Expected Actual
checkY {{#invoke:Example|hello_to|Fred}} Hello, Fred! Hello, Fred!