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|28|psi|Pa}} 28 psi (190 000 Pa)
{{convert|60|mph|km/h}} 60 mph (97 km/h)
{{convert|100|C|F}} 100 °C (212 °F)
]==]
local p = require('Module:Convert/tester')
p.tests = tests
return p