Module:TNT/testcases

-- Unit tests for Module:TNT. Click talk page to run tests. local p = require('Module:UnitTests') function p:test_msg self:preprocess_equals('', 'text message') self:preprocess_equals('', 'text message') self:preprocess_equals('', 'text message') self:preprocess_equals('', 'текст') self:preprocess_equals('', 'text message')

self:preprocess_equals('', 'text message a') self:preprocess_equals('', 'text message a ') self:preprocess_equals('', 'text message \na \n ') self:preprocess_equals('', 'текст абв')

self:preprocess_equals('', 'text message a and b') self:preprocess_equals('', 'text message a  and  b ') self:preprocess_equals('', 'text message \na \n  and  \nb \n ') self:preprocess_equals('', 'текст абв и где')

self:preprocess_equals('', 'text message a|b') self:preprocess_equals('', 'text message b ') self:preprocess_equals('', 'текст где') self:preprocess_equals('', 'текст') self:preprocess_equals('', 'текст') self:preprocess_equals('', 'текст') end

function p:test_link self:preprocess_equals('', 'commons:Data:abc.tab') self:preprocess_equals('', 'commons:Data:abc.tab') self:preprocess_equals('', 'commons:Data:abc.tab') end

return p