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))

require('Module:No globals')

local p = require('Module:UnitTests')

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

function p:test_invalid_ISINs self:preprocess_equals("", "") self:preprocess_equals("", "") self:preprocess_equals("", "") self:preprocess_equals("", "") self:preprocess_equals("", "") self:preprocess_equals("", "") self:preprocess_equals("", "") self:preprocess_equals("", "") self:preprocess_equals("", "") 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