Content deleted Content added
test zoom |
hardwire values |
||
Line 28:
-- Test scale
function p:test_scale()
self:preprocess_equals_many(
'{{#invoke:Infobox dim
{'length_km=20|width_km=30',62500},
{'length_mi=20|width_mi=30',100584},
{'width_km=20|length_km=30',62500},
{'width_mi=20|length_mi=30',100584},
{'length_km=20',41667},
{'length_mi=20',67056},
{'width_km=30',62500},
{'width_mi=30',100584},
{'area_km2=300',70509},
{'area_mi2=200',92650},
{'area_ha=30,000',70509},
{'area_acre=75,000',70921},
{'dim=50km',208333},
{'scale=100000',100000},
{'type=mountain',100000},
{'type=city|population=100000',47013},
{'type=mountain|length_km=20',41667}
})
self:preprocess_equals('{{#invoke:Infobox dim | scale}}','')
Line 53:
-- Test zoom
function p:test_zoom()
self:preprocess_equals_many(
'{{#invoke:Infobox dim
{'length_km=20|width_km=30',13},
{'length_mi=20|width_mi=30',12},
{'width_km=20|length_km=30',13},
{'width_mi=20|length_mi=30',12},
{'length_km=20',14},
{'length_mi=20',13},
{'width_km=30',13},
{'width_mi=30',12},
{'area_km2=300',13},
{'area_mi2=200',12},
{'area_ha=30,000',13},
{'area_acre=75,000',13},
{'dim=50km',11},
{'scale=100000',12},
{'type=mountain',12},
{'type=city|population=100000',13},
{'type=mountain|length_km=20',14}
})
self:preprocess_equals('{{#invoke:Infobox dim | zoom}}','')
|