Обсуждение модуля:BananasArgs

Материал из ВикиФур
Перейти к: навигация, поиск

Модуль:BananasArgs/testcases‎

4 tests failed.

test_add:

Text Expected Actual
Ok {{#invoke:BananasArgs|add|5|3}} 8 8

test_add_backwards:

Text Expected Actual
Ok {{#invoke:BananasArgs|add|2=5|1=3}} 8 8

test_count_fruit:

Text Expected Actual
Ok {{#invoke:BananasArgs|count_fruit|bananas=5|apples=3}} I have 5 bananas and 3 apples I have 5 bananas and 3 apples

test_count_fruit_otherorder:

Text Expected Actual
Ok {{#invoke:BananasArgs|count_fruit|apples=3|bananas=5}} I have 5 bananas and 3 apples I have 5 bananas and 3 apples

test_custom_fruit:

Text Expected Actual
Fail {{#invoke:BananasArgs|custom_fruit|pineapples=10|kiwis=5}} I have: 5 kiwis 10 pineapples I have: 10 pineapples 5 kiwis

test_custom_fruit_2:

Text Expected Actual
Fail {{#invoke:BananasArgs|custom_fruit_2|Fred|pineapples=10|kiwis=5}} Fred has: 5 kiwis 10 pineapples Fred has: 10 pineapples 5 kiwis

test_custom_fruit_2_alternateorder:

Text Expected Actual
Fail {{#invoke:BananasArgs|custom_fruit_2|kiwis=5|1=Fred|pineapples=10}} Fred has: 10 pineapples 5 kiwis Fred has: 5 kiwis 10 pineapples

test_custom_fruit_otherorder:

Text Expected Actual
Fail {{#invoke:BananasArgs|custom_fruit|kiwis=5|pineapples=10}} I have: 10 pineapples 5 kiwis I have: 5 kiwis 10 pineapples

test_has_fruit:

Text Expected Actual
Ok {{#invoke:BananasArgs|has_fruit|Fred|bananas=5|cherries=7}} Fred has: 5 bananas 7 cherries Fred has: 5 bananas 7 cherries

test_has_fruit_alternateorder:

Text Expected Actual
Ok {{#invoke:BananasArgs|has_fruit|cherries=7|1=Fred|bananas=5}} Fred has: 5 bananas 7 cherries Fred has: 5 bananas 7 cherries

test_hello:

Text Expected Actual
Ok {{#invoke:BananasArgs|hello|Fred}} Hello, Fred! Hello, Fred!

test_hello_noone:

Text Expected Actual
Ok {{#invoke:BananasArgs|hello|}} Hello, ! Hello, !

test_hello_world:

Text Expected Actual
Ok {{#invoke:BananasArgs|hello_world}} Hello, world! Hello, world!

test_hello_world_extraneous:

Text Expected Actual
Ok {{#invoke:BananasArgs|hello_world|extra}} Hello, world! Hello, world!