Module:IPA symbol/sandbox/testcases

-- Unit tests for Module:IPA symbol. Click talk page to run tests. local p = require('Module:UnitTests') --   self:preprocess_equals_preprocess(, ) -- currently: custom_error corresponds with para2 (set message for not-in-list error; currently default return = error message. -- currently: custom_output corresponds with para3 in IPAsym (set message for blank input; default return = '' (blank)) --- note: para2 and para3 do interact (para3 defaults to para2 behaviour), but their module parameters do not.

function p:test_a_basic_IPA_symbols self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess(, )

end

function p:test_b_blank_input self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess(, )

end

function p:test_c_error_options

self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess(, ) end

function p:test_d_error_options_ineffective -- set messages should not be shown in OK input self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess(, )

end

return p