Module:Check ISIN/testcases

-- Unit tests for Module:Check ISIN. Click talk page to run tests. -- Example usage: --  -- Console example: --  mw.log(p.run_tests(mw.getCurrentFrame))

local p = require('Module:UnitTests')

function p:test_valid_ISINs self:preprocess_equals("", "valid") self:preprocess_equals("", "valid") self:preprocess_equals("", "valid") self:preprocess_equals("", "valid") self:preprocess_equals("", "valid") end

function p:test_invalid_ISINs self:preprocess_equals("", "invalid") self:preprocess_equals("", "invalid") self:preprocess_equals("", "invalid") self:preprocess_equals("", "invalid") self:preprocess_equals("", "invalid") self:preprocess_equals("", "invalid") end

function p:test_named_arguments self:preprocess_equals("", "okay") self:preprocess_equals("", "error") self:preprocess_equals("", "") self:preprocess_equals("", "") end

function p:test_positional_arguments self:preprocess_equals("", "okay") self:preprocess_equals("", "error") self:preprocess_equals("", "") self:preprocess_equals("", "") end

return p