Module:Convert/testcases
Išvaizda
Documentation for this module may be created at Module:Convert/testcases/doc
local tests = [==[
A template to be tested must be at the start of a line.
Lines which do not start with a template are ignored.
{{convert/sandbox|1|acre|lk=on}} 1 [[acre]] (0,40 [[hectare|ha]])
{{convert/sandbox|1|m2|acres|lk=on}} 1 [[square metre]] (0,00025 [[acre]])
{{convert/sandbox|0.16|/l|2|disp=table}} align="right"|0,16\n|align="right"|0.61
{{convert/sandbox|1|m2|cm2|lk=on}} 1 [[square metre]] (10 000 [[Square centimetre|cm<sup>2</sup>]])
{{convert/sandbox|1|m2|ha|lk=on}} 1 [[square metre]] (0,00010 [[hectare|ha]])
{{convert/sandbox|1|m2|km²|lk=on}} 1 [[square metre]] (1,0<span style="margin:0 .15em 0 .25em">×</span>10<sup>−6</sup> [[Square kilometre|km<sup>2</sup>]])
{{convert/sandbox|1|m2|mm2|lk=on}} 1 [[square metre]] (1 000 000 [[Square millimetre|mm<sup>2</sup>]])
{{convert/sandbox|1|m/s2|km/h/s|lk=on}} 1 [[metre per second squared]] (3,6 [[Acceleration|km/(h⋅s)]])
{{convert/sandbox|1|kg/m3|g/cm3|lk=on}} 1 [[Density|kilogram per cubic metre]] (0,0010 [[Gram|g]]/[[Cubic centimetre|cm<sup>3</sup>]])
{{convert/sandbox|1|kg/m3|g/ml|lk=on}} 1 [[Density|kilogram per cubic metre]] (0,0010 [[Density|g/ml]])
{{convert/sandbox|28|psi|Pa}} 28 psi (190 000 Pa)
{{convert/sandbox|60|mph|km/h}} 60 mph (97 km/h)
{{convert/sandbox|100|C|F}} 100 °C (212 °F)
]==]
local p = require('Module:Convert/tester')
p.tests = tests
return p