-- Unit tests for . Click talk page to run tests.local p = require('Module:UnitTests')
function p:test_main self:preprocess_equals_preprocess('', '100m2') self:preprocess_equals_preprocess('', '100square feet') self:preprocess_equals_preprocess('', '1000m (3,000feet)') self:preprocess_equals_preprocess('', '1000feet') self:preprocess_equals_preprocess('', '100km/h') self:preprocess_equals_preprocess('', '100mph') self:preprocess_equals_preprocess('', '1000ha') self:preprocess_equals_preprocess('', '1000acres') self:preprocess_equals_preprocess('', '1000km2') self:preprocess_equals_preprocess('', '1000sqmi') self:preprocess_equals_preprocess('', '5feet') self:preprocess_equals_preprocess('', '120inches') self:preprocess_equals_preprocess('', '375ml') self:preprocess_equals_preprocess('', '40impoz') self:preprocess_equals_preprocess('', '32USoz') self:preprocess_equals_preprocess('', '180cm (70inches)') self:preprocess_equals_preprocess('', '5feet') self:preprocess_equals_preprocess('', '120inches') self:preprocess_equals_preprocess('', '5feet') self:preprocess_equals_preprocess('', '180cm (70inches)') self:preprocess_equals_preprocess('', '5feet') self:preprocess_equals_preprocess('', '120inches') self:preprocess_equals_preprocess('', '5feet') self:preprocess_equals_preprocess('', '8.5kg (18.7lb)') self:preprocess_equals_preprocess('', '4lb') self:preprocess_equals_preprocess('', '65kg (143lb)') self:preprocess_equals_preprocess('', '10st') self:preprocess_equals_preprocess('', '11st') self:preprocess_equals_preprocess('', '10st') self:preprocess_equals_preprocess('', '145lb') self:preprocess_equals_preprocess('', '65kg (143lb)') self:preprocess_equals_preprocess('', ) self:preprocess_equals_preprocess('', ) self:preprocess_equals_preprocess('', '100m2') self:preprocess_equals_preprocess('', '375ml') self:preprocess_equals_preprocess('', '375ml') self:preprocess_equals_preprocess('', '40impoz') self:preprocess_equals_preprocess('', '1004NaN4') self:preprocess_equals_preprocess('', '100sigfig=4NaNsigfig=4') self:preprocess_equals_preprocess('', '402NaN2') self:preprocess_equals_preprocess('', '40sigfig=3NaNsigfig=3') self:preprocess_equals_preprocess('', '10st') self:preprocess_equals_preprocess('', '10st') self:preprocess_equals_preprocess('', '650NaN0') self:preprocess_equals_preprocess('', '651NaN1') self:preprocess_equals_preprocess('', '23lk=inNaNlk=in') self:preprocess_equals_preprocess('', '160-1NaN-1') self:preprocess_equals_preprocess('', '1501NaN1') self:preprocess_equals_preprocess('', '3287263km2') 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('', '100m2') self:preprocess_equals_preprocess('', '100square feet') self:preprocess_equals_preprocess('', '1000m (3,000feet)') self:preprocess_equals_preprocess('', '1000feet') self:preprocess_equals_preprocess('', '100km/h') self:preprocess_equals_preprocess('', '100mph') self:preprocess_equals_preprocess('', '1000ha') self:preprocess_equals_preprocess('', '1000acres') self:preprocess_equals_preprocess('', '1000km2') self:preprocess_equals_preprocess('', '1000sqmi') self:preprocess_equals_preprocess('', '5feet') self:preprocess_equals_preprocess('', '120inches') self:preprocess_equals_preprocess('', '375ml') self:preprocess_equals_preprocess('', '40impoz') self:preprocess_equals_preprocess('', '32USoz') self:preprocess_equals_preprocess('', '180cm (70inches)') self:preprocess_equals_preprocess('', '5feet') self:preprocess_equals_preprocess('', '120inches') self:preprocess_equals_preprocess('', '5feet') self:preprocess_equals_preprocess('', '180cm (70inches)') self:preprocess_equals_preprocess('', '5feet') self:preprocess_equals_preprocess('', '120inches') self:preprocess_equals_preprocess('', '5feet') self:preprocess_equals_preprocess('', '8.5kg (18.7lb)') self:preprocess_equals_preprocess('', '4lb') self:preprocess_equals_preprocess('', '65kg (143lb)') self:preprocess_equals_preprocess('', '10st') self:preprocess_equals_preprocess('', '11st') self:preprocess_equals_preprocess('', '10st') self:preprocess_equals_preprocess('', '145lb') self:preprocess_equals_preprocess('', '65kg (143lb)') self:preprocess_equals_preprocess('', ) self:preprocess_equals_preprocess('', ) self:preprocess_equals_preprocess('', '100m2') self:preprocess_equals_preprocess('', '375ml') self:preprocess_equals_preprocess('', '375ml') self:preprocess_equals_preprocess('', '40impoz') self:preprocess_equals_preprocess('', '1004NaN4') self:preprocess_equals_preprocess('', '100sigfig=4NaNsigfig=4') self:preprocess_equals_preprocess('', '402NaN2') self:preprocess_equals_preprocess('', '40sigfig=3NaNsigfig=3') self:preprocess_equals_preprocess('', '10st') self:preprocess_equals_preprocess('', '10st') self:preprocess_equals_preprocess('', '650NaN0') self:preprocess_equals_preprocess('', '651NaN1') self:preprocess_equals_preprocess('', '23lk=inNaNlk=in') self:preprocess_equals_preprocess('', '160-1NaN-1') self:preprocess_equals_preprocess('', '1501NaN1') self:preprocess_equals_preprocess('', '3287263km2') self:preprocess_equals_preprocess('', ) self:preprocess_equals_preprocess('', ) self:preprocess_equals_preprocess('', ) self:preprocess_equals_preprocess('', )end
return p