Module:Infobox road/abbrev/CAN/testcases

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

function p:test_ProvincialHwys self:preprocess_equals('', 'Hwy 1') self:preprocess_equals('', 'Hwy 1') self:preprocess_equals('', 'BC 1') self:preprocess_equals('', 'PTH 1') self:preprocess_equals('', 'Route 1') self:preprocess_equals('', 'Route 1') self:preprocess_equals('', 'Route 1') self:preprocess_equals('', 'Route 1') self:preprocess_equals('', 'Highway 401') self:preprocess_equals('', 'QEW') self:preprocess_equals('', 'Route 1') self:preprocess_equals('', 'Hwy 1') self:preprocess_equals('', 'Hwy 1') self:preprocess_equals('', 'Hwy 1') end

function p:test_TCH self:preprocess_equals('', 'Hwy 1 (TCH)') end

function p:test_Autoroutes self:preprocess_equals('', 'A-20') self:preprocess_equals('', 'A-20') end

function p:test_CountyRoads self:preprocess_equals('', 'CR 1') end

function p:test_Secondary self:preprocess_equals('', 'Hwy 1') self:preprocess_equals('', 'Hwy 1') end

function p:test_MunicipalRoads self:preprocess_equals('', 'K.L. Road 7') self:preprocess_equals('', 'Road 10') end

function p:test_RegionalRoads self:preprocess_equals('', 'RR 20') end

function p:test_Trunk self:preprocess_equals('', 'Trunk 7') end

function p:test_ProvincialRoads self:preprocess_equals('', 'PR 200') end

return p