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 a') self:preprocess_equals('', 'text message a ') self:preprocess_equals('', 'text message \n a \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 \n a \n and \n b \n ') self:preprocess_equals('', 'текст абв и где')

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

return p