Toggle menu
15
236
90
27.9K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module talk:Example/testcases

Discussion page of Module:Example/testcases
Revision as of 13:30, 16 March 2025 by Prd (talk | contribs) (Created page with "{{#invoke: Example/testcases | run_tests}}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

All 10 tests passed.

test_Name2
Text Expected Actual
checkY {{#invoke:Example|Name2}} Lonely Lonely
checkY {{#invoke:Example|Name2|1}} Lonely Lonely
checkY {{#invoke:Example|Name2|1|2}} Be positive! Be positive!
checkY {{#invoke:Example|Name2|2|1}} 1 1
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
checkY {{#invoke:Example|count_fruit|bananas=1|apples=1}} I have 1 banana and 1 apple 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 I have 0 bananas and 0 apples
checkY {{#invoke:Example|count_fruit}} I have 0 bananas and 0 apples I have 0 bananas and 0 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!