Module:Marriage/testcases explained

-- Unit tests for . Click talk page to run tests.local p = require('Module:UnitTests')

-- Example unit test.function p:tests self:preprocess_equals('', 'Name (1910; 1950)') self:preprocess_equals('', '(1910; 1950)') self:preprocess_equals('', 'Name (1950)') self:preprocess_equals('', 'Name (1910)') self:preprocess_equals('', 'Name (1910–1950)') self:preprocess_equals('', 'Name (1910;)') self:preprocess_equals('', '(1910)') self:preprocess_equals('', ) self:preprocess_equals('', 'Name (1910–1950)') self:preprocess_equals('', 'Name (1910–1950)') self:preprocess_equals('', 'Name ') self:preprocess_equals('', '')

self:preprocess_equals('', 'Name (1910; died 1950)') self:preprocess_equals('', '(1910; died 1950)') self:preprocess_equals('', 'Name (died 1950)') self:preprocess_equals('', 'Name (died 1950)') self:preprocess_equals('', 'Name (died 1950)') self:preprocess_equals('', 'Name (1910)') self:preprocess_equals('', 'Name (1910;)') self:preprocess_equals('', '')

end

return p