Module:BananasArgs/testcases

-- Unit tests for Module:BananaArgs. Click talk page to run tests. local p = require('Module:UnitTests') function p:test_hello_world self:preprocess_equals('', 'Hello, world!') end function p:test_hello self:preprocess_equals('', 'Hello, Fred!') end function p:test_add self:preprocess_equals('', '8') end function p:test_count_fruit self:preprocess_equals('', 'I have 5 bananas and 3 apples') end

function p:test_has_fruit self:preprocess_equals('', 'Fred has: 5 bananas 7 cherries') end function p:test_custom_fruit self:preprocess_equals('', 'I have: 5 kiwis 10 pineapples') end function p:test_custom_fruit_2 self:preprocess_equals('', 'Fred has: 5 kiwis 10 pineapples') end

return p