Module talk:Example/testcases

All 10 tests passed.

test_Name2
TextExpectedActual
checkY{{#invoke:Example|Name2}}LonelyLonely
checkY{{#invoke:Example|Name2|1}}LonelyLonely
checkY{{#invoke:Example|Name2|1|2}}Be positive!Be positive!
checkY{{#invoke:Example|Name2|2|1}}11
test_count_fruit
TextExpectedActual
checkY{{#invoke:Example|count_fruit|bananas=5|apples=3}}I have 5 bananas and 3 applesI have 5 bananas and 3 apples
checkY{{#invoke:Example|count_fruit|bananas=1|apples=1}}I have 1 banana and 1 appleI 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 applesI have 0 bananas and 0 apples
checkY{{#invoke:Example|count_fruit}}I have 0 bananas and 0 applesI have 0 bananas and 0 apples
test_hello
TextExpectedActual
checkY{{#invoke:Example | hello}}Hello World!Hello World!
test_hello_to
TextExpectedActual
checkY{{#invoke:Example|hello_to|Fred}}Hello, Fred!Hello, Fred!