Difference between revisions of "Template:Convert/testcases"

From blackwiki
Jump to navigation Jump to search
imported>DePiep
(→‎Testcases by Unit Type: add length3 = hand (unit))
imported>Johnuniq
(add section with tests for sandbox modules)
Line 6: Line 6:
 
* [[Special:PrefixIndex/Template:Convert/testcases|All /testcases/ pages]]
 
* [[Special:PrefixIndex/Template:Convert/testcases|All /testcases/ pages]]
  
==Testcases by Unit Type==
+
==Sandbox testcases==
 +
The following test the [[Module:Convert/sandbox|sandbox modules]] by comparing the output of {{tl|convert/sandbox}} with fixed wikitext. The results should be examined when the sandbox modules are changed.
 +
{| class="wikitable"
 +
! Test !! Result
 +
|-
 +
| [[Template:Convert/testcases/sandbox1|sandbox1]] || [[Template talk:Convert/testcases/sandbox1|talk sandbox1]]
 +
|-
 +
| [[Template:Convert/testcases/sandbox2|sandbox2]] || [[Template talk:Convert/testcases/sandbox2|talk sandbox2]]
 +
|-
 +
| [[Template:Convert/testcases/sandbox3|sandbox3]] || [[Template talk:Convert/testcases/sandbox3|talk sandbox3]]
 +
|}
  
 +
==Testcases by unit type==
 +
The following compare the output of {{tl|convert/old}} with that from {{tl|convert}}. The former uses the system of templates from before December 2013, while the latter uses the [[Module:Convert|convert modules]].
 
{| class="wikitable"
 
{| class="wikitable"
 
! Type
 
! Type
Line 66: Line 78:
 
|-
 
|-
 
| [[Template:Convert/testcases/bytype/misc|misc]] (these need sorting into better groupings)
 
| [[Template:Convert/testcases/bytype/misc|misc]] (these need sorting into better groupings)
|-
 
 
|}
 
|}
  
==Other Testcases==
+
==Other testcases==
 +
The following compare the output of {{tl|convert/old}} with that from {{tl|convert}}. The former uses the system of templates from before December 2013, while the latter uses the [[Module:Convert|convert modules]].
 
{| class="wikitable"
 
{| class="wikitable"
 
! Test topic
 
! Test topic
Line 116: Line 128:
 
|}
 
|}
  
==Previous tests==  
+
==Previous tests==
 
* [[Template:Convert/testcases/old]]
 
* [[Template:Convert/testcases/old]]
  
 
[[Category:Subtemplates of Template Convert/testcases]]
 
[[Category:Subtemplates of Template Convert/testcases]]

Revision as of 03:21, 23 June 2014

  1. REDIRECT Template:Testcases notice
  • From a page move: This is a redirect from a page that has been moved (renamed). This page was kept as a redirect to avoid breaking links, both internal and external, that may have been made to the old page name.

Sandbox testcases

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

Test Result
sandbox1 talk sandbox1
sandbox2 talk sandbox2
sandbox3 talk sandbox3

Testcases by unit type

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

Type
acceleration
area, area2
density
energy, energy2, energy3, energy4
energyperlength
energypermass
energypervolume
exhaustemission
flow
force
fuelconsumption
gradient
length, length2, length3 (hand)
lineardensity
mass
mole
per (cost/area/volume/mass)
populationdensity
power
pressure
radioactivity
speed
temperature
temperature-change
time
torque
volume, volume2, volume3, volume4, volume5
misc (these need sorting into better groupings)

Other testcases

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

Test topic
warnings
numbers
dualunit
options, options2
tables
spell
range
rounding
sigfig
parametercombinations1 - No disp param
parametercombinations2 - disp=or
parametercombinations3 - disp=x|BEGIN|END
parametercombinations4 - disp=output only
parametercombinations5 - disp=output number only
parametercombinations6 - disp=flip
parametercombinations7 - disp=unit
parametercombinations8 - disp=br
parametercombinations9 - disp=sqbr
parametercombinations10 - disp=u2
extra
prefixes (currently, SI only)

Previous tests