Module:ConvertIB/testcases

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

function p:test_main self:preprocess_equals_preprocess('', '100 m2') self:preprocess_equals_preprocess('', '100 sqft') self:preprocess_equals_preprocess('', '1000 m') self:preprocess_equals_preprocess('', '1000 ft') self:preprocess_equals_preprocess('', '100 km/h') self:preprocess_equals_preprocess('', '100 mph') self:preprocess_equals_preprocess('', '1000 ha') self:preprocess_equals_preprocess('', '1000 acre') self:preprocess_equals_preprocess('', '1000 km2') self:preprocess_equals_preprocess('', '1000 sqmi') self:preprocess_equals_preprocess('', '5 ft') self:preprocess_equals_preprocess('', '120 in') self:preprocess_equals_preprocess('', '375 ml') self:preprocess_equals_preprocess('', '40 impoz') self:preprocess_equals_preprocess('', '32 USoz') self:preprocess_equals_preprocess('', '180 cm') self:preprocess_equals_preprocess('', '5 ft') self:preprocess_equals_preprocess('', '120 in') self:preprocess_equals_preprocess('', '5 ft') self:preprocess_equals_preprocess('', '180 cm') self:preprocess_equals_preprocess('', '5 ft') self:preprocess_equals_preprocess('', '120 in') self:preprocess_equals_preprocess('', '5 ft') self:preprocess_equals_preprocess('', '8.5 kg') self:preprocess_equals_preprocess('', '4 lb') self:preprocess_equals_preprocess('', '65 kg') self:preprocess_equals_preprocess('', '10 st') self:preprocess_equals_preprocess('', '11 st') self:preprocess_equals_preprocess('', '10 st') self:preprocess_equals_preprocess('', '145 lb') self:preprocess_equals_preprocess('', '65 kg') self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess('', '100 m2') self:preprocess_equals_preprocess('', '375 ml') self:preprocess_equals_preprocess('', '375 ml') self:preprocess_equals_preprocess('', '40 impoz') self:preprocess_equals_preprocess('', '100 m2') self:preprocess_equals_preprocess('', '100 m2') self:preprocess_equals_preprocess('', '40 impoz') self:preprocess_equals_preprocess('', '40 impoz') self:preprocess_equals_preprocess('', '10 st') self:preprocess_equals_preprocess('', '10 st') self:preprocess_equals_preprocess('', '65 kg') self:preprocess_equals_preprocess('', '65 kg') self:preprocess_equals_preprocess('', '23 st') self:preprocess_equals_preprocess('', '160 kg') self:preprocess_equals_preprocess('', '150 L') self:preprocess_equals_preprocess('', '3,287,263 km2') self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess(, ) end

function p:test_sandbox self:preprocess_equals_preprocess('', '100 m2') self:preprocess_equals_preprocess('', '100 sqft') self:preprocess_equals_preprocess('', '1000 m') self:preprocess_equals_preprocess('', '1000 ft') self:preprocess_equals_preprocess('', '100 km/h') self:preprocess_equals_preprocess('', '100 mph') self:preprocess_equals_preprocess('', '1000 ha') self:preprocess_equals_preprocess('', '1000 acre') self:preprocess_equals_preprocess('', '1000 km2') self:preprocess_equals_preprocess('', '1000 sqmi') self:preprocess_equals_preprocess('', '5 ft') self:preprocess_equals_preprocess('', '120 in') self:preprocess_equals_preprocess('', '375 ml') self:preprocess_equals_preprocess('', '40 impoz') self:preprocess_equals_preprocess('', '32 USoz') self:preprocess_equals_preprocess('', '180 cm') self:preprocess_equals_preprocess('', '5 ft') self:preprocess_equals_preprocess('', '120 in') self:preprocess_equals_preprocess('', '5 ft') self:preprocess_equals_preprocess('', '180 cm') self:preprocess_equals_preprocess('', '5 ft') self:preprocess_equals_preprocess('', '120 in') self:preprocess_equals_preprocess('', '5 ft') self:preprocess_equals_preprocess('', '8.5 kg') self:preprocess_equals_preprocess('', '4 lb') self:preprocess_equals_preprocess('', '65 kg') self:preprocess_equals_preprocess('', '10 st') self:preprocess_equals_preprocess('', '11 st') self:preprocess_equals_preprocess('', '10 st') self:preprocess_equals_preprocess('', '145 lb') self:preprocess_equals_preprocess('', '65 kg') self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess('', '100 m2') self:preprocess_equals_preprocess('', '375 ml') self:preprocess_equals_preprocess('', '375 ml') self:preprocess_equals_preprocess('', '40 impoz') self:preprocess_equals_preprocess('', '100 m2') self:preprocess_equals_preprocess('', '100 m2') self:preprocess_equals_preprocess('', '40 impoz') self:preprocess_equals_preprocess('', '40 impoz') self:preprocess_equals_preprocess('', '10 st') self:preprocess_equals_preprocess('', '10 st') self:preprocess_equals_preprocess('', '65 kg') self:preprocess_equals_preprocess('', '65 kg') self:preprocess_equals_preprocess('', '23 st') self:preprocess_equals_preprocess('', '160 kg') self:preprocess_equals_preprocess('', '150 L') self:preprocess_equals_preprocess('', '3,287,263 km2') self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess(, ) self:preprocess_equals_preprocess(, ) end

return p