template:convert/testcases

{{Template test cases notice}}

  • Live version tested: {{t links|convert}}
  • Sandbox version tested: {{t links|convert/sandboxlua}}
  • Module tested in this sandbox: {{Lmd|convert}}
  • All /testcases/ pages

{cvt} testcases

To compare: {{para|abbr}} options in {{tlf|convert}} and {{tlf|cvt}}

  • {convert|10|km|mi}} → {{convert|10|km|mi}}

:{cvt|...} → {{cvt|10|km|mi}}

  • {convert|10|km|mi|abbr=}} → {{convert|10|km|mi|abbr=}}

:{cvt|...} → {{cvt|10|km|mi|abbr=}}

  • {convert|10|km|mi|abbr=in}} → {{convert|10|km|mi|abbr=in}}

:{cvt|...} → {{cvt|10|km|mi|abbr=in}}

  • {convert|10|km|mi|abbr=off}} → {{convert|10|km|mi|abbr=off}}

:{cvt|...} → {{cvt|10|km|mi|abbr=off}}

  • {convert|10|km|mi|abbr=none}} → {{convert|10|km|mi|abbr=none}}

:{cvt|...} → {{cvt|10|km|mi|abbr=none}}

  • {convert|10|km|mi|abbr=on}} → {{convert|10|km|mi|abbr=on}}

:{cvt|...} → {{cvt|10|km|mi|abbr=on}}

  • {convert|10|km|mi|abbr=out}} → {{convert|10|km|mi|abbr=out}}

:{cvt|...} → {{cvt|10|km|mi|abbr=out}}

  • {convert|10|km|mi|abbr=values}} → {{convert|10|km|mi|abbr=values}}

:{cvt|...} → {{cvt|10|km|mi|abbr=values}}

  • {convert|10|km|mi|abbr=~}} → {{convert|10|km|mi|abbr=~}}

:{cvt|...} → {{cvt|10|km|mi|abbr=~}}

  • {convert|10|km|mi|abbr=foo}} → {{convert|10|km|mi|abbr=foo}}

:{cvt|...} → {{cvt|10|km|mi|abbr=foo}}

Sandbox testcases

The following test the sandbox modules by comparing the output of {{tl|convert/sandbox}} with fixed wikitext. The results should be examined when the sandbox modules are changed.

The sandbox testcases contain almost all the converts from the tests listed in other sections on this page, and extra tests.

class="wikitable"

! Test !! Result

sandbox1talk sandbox1
sandbox2talk sandbox2
sandbox3talk sandbox3
sandbox4talk sandbox4

Other testcases

The following compare the output of {{tl|Convert/sandboxlua}} with that from {{tl|convert}}. The former uses the system of templates from before December 2013, while the latter uses the convert modules.

class="wikitable"

! Test topic

tables
sigfig