Template:Val/units/testcases

This content is in the Template Namespace. Used for page-templates that can be re-used across the wiki.

Template:Testcases notice


This is list of all units in alphabetical order. When several entries in a row look alike, it can mean that there are several ways to markup that link in Val. If tests fail, Purge there or reload here.

The test includes whitespace.

  • The output should be double spaced, no more, no less.
  • Each side-by-side token should look the same.

The other units tests (incl. whitespace) is at Val testcases.

Usage

Generate the tests from {{Val/units}} wikitext. First remove the unspaced units then

$ grep '^|' val-units | sort | perl -F'/\||=/' -lane \
> 'print "{{Val/units|$F[1]}} {{Val/units/sandbox|$F[1]}}\n"'

   or   

$ grep '^|' val-units | sort | perl -F'/\||=/' -lane \
> 'print "{{Val/units|$F[1]}} &#123 {Convert|1|$F[1]|disp=unit|lk=on|abbr=on}}\n"'

If a test fails, you must identify the unit code from the wikitext.

  • If markup is showing instead rendering, you've got a syntax error that should've been caught at Val/units preview testing (missing colon, misplaced bracket, etc.)
  • If there's a red link, start by editing Val/units.
  • Uncommon failures are template problems. If one unit is quadruple spaced, a unit had no output because no #switch default. If all units are quadruple spaced, a partial transclusion tag is out of place at units.

Compare Val/units with its current sandbox

<Units Sandbox>

8 A

8 G

8 Hz

8 K

8 T

8 V

8 eV/c2

8 eV

8 g

8 s

8 AD

8 BC

8 BCE

8 BP

8 C

8 C

8 CE

8 EA

8 EG

8 EHz

8 EK

8 ET

8 EV

8 M⊕

8 R⊕

8 Eg

8 Em2

8 Em

8 Es

8 F

8 F

8 Foo

8 GA

8 GG

8 GHz

8 GJ⋅mol−1

8 GJ/mol

8 GK

8 GPa

8 GT

8 GV

8 Ga

8 Gal

8 Gbit/s

8 GeV/c2

8 GeV

8 Gg

8 Gm2

8 Gm

8 Gpc2

<Units Sandbox>

8 Gpc3

8 Gpc

8 Gs

8 Gyr

8 H⋅m−1

8 H

8 J⋅mol−1

8 J⋅s

8 J/C

8 J/kg

8 J/mol

8 MJ

8 RJ

8 KPa

8 L☉

8 L☉

8 MA

8 MG

8 MHz

8 MJ⋅mol−1

8 MJ/mol

8 MK

8 MPa

8 MT

8 MV

8 M⊕

8 MJ

8 M☉

8 M☉

8 Ma

8 Mbit/s

8 MeV/c2

8 MeV

8 Mg

8 Mm2

8 Mm

8 Mpc2

8 Mpc3

8 Mpc

8 Ms

8 N⋅A−2

8 Osm

8 PA

8 PG

8 PHz

8 PK

8 PT

8 PV

8 Pa

8 Pg

<Units Sandbox>

8 Pm2

8 Pm

8 Ps

8 R

8 R

8 R⊕

8 RJ

8 R☉

8 R☉

8 L☉

8 M☉

8 R☉

8 TA

8 TG

8 THz

8 TJ⋅mol−1

8 TJ/mol

8 TK

8 TT

8 TV

8 Tbit/s

8 TeV/c2

8 TeV

8 Tg

8 Tm2

8 Tm

8 Torr

8 Ts

8 V⋅m−1

8 V/m

8 VV

8 Wb

8 YA

8 YG

8 YHz

8 YK

8 YT

8 YV

8 Yg

8 Ym2

8 Ym

8 Ys

8 ZA

8 ZG

8 ZHz

8 ZK

8 ZT

8 ZV

8 Zg

8 Zm2

<Units Sandbox>

8 Zm

8 Zs

8 aA

8 aG

8 aHz

8 aK

8 aT

8 ag

8 am2

8 am

8 as

8 au

8 billiard

8 billion

8 billionth

8 billionths

8 bit/s

8 bit/s

8 bya

8 byr

8 byte/s

8 byte

8 c

8 cA

8 cG

8 cHz

8 cK

8 cT

8 cV

8 cg

8 cm−1

8 cm2

8 cm

8 cs

8 dA

8 dG

8 dHz

8 dK

8 dT

8 dV

8 daA

8 daG

8 daHz

8 daK

8 daT

8 daV

8 dag

8 dam2

8 dam

8 das

<Units Sandbox>

8 decilliard

8 decillion

8 decillionth

8 decillionths

8 °C

8 °F

8 °R

8 dg

8 dm2

8 dm

8 ds

8 fA

8 fG

8 fHz

8 fK

8 fT

8 fV

8 fb−1

8 fg

8 fm2

8 fm

8 fs

8 g⋅mol−1

8 g/L

8 g/cm3

8 g/l

8 g/mol

8 gal

8 hA

8 hG

8 hHz

8 hK

8 hT

8 hV

8 hg

8 hm2

8 hm

8 hs

8 kA

8 kG

8 kHz

8 kJ⋅mol−1

8 kJ/mol

8 kK

8 kT

8 kV

8 kW⋅h

8 kWh

8 kW⋅h

8 ka

<Units Sandbox>

8 kbit/s

8 keV/c2

8 keV

8 kg⋅mol−1

8 kg/cm3

8 kg/m3

8 kg/mol

8 kg

8 km2

8 km3

8 km

8 kpc2

8 kpc3

8 kpc

8 ks

8 kya

8 kyr

8 lbF

8 lbm

8 ly

8 m−1

8 m−2

8 m−3

8 m⋅s−1

8 m⋅s−2

8 m/s2

8 m/s

8 m

8 mA

8 mG

8 mGal

8 mHz

8 mK

8 mT

8 mV

8 mas

8 µg/dL

8 μg

8 μg

8 m

8 m

8 mev

8 mg/mL

8 mg/ml

8 mg

8 milliard

8 mm2

8 mm

8 ms

8 muA

<Units Sandbox>

8 muG

8 muGal

8 muHz

8 muJ

8 muK

8 muT

8 muV

8 mug/dL

8 mug/dl

8 mug

8 mum

8 mus

8 mya

8 myr

8 nA

8 nG

8 nHz

8 nK

8 nT

8 nV

8 ng

8 nm2

8 nm

8 nonilliard

8 nonillion

8 nonillionth

8 nonillionths

8 ns

8 octilliard

8 octillion

8 octillionth

8 octillionths

8 osmol

8 pA

8 pG

8 pHz

8 pK

8 pT

8 pV

8 pc2

8 pc3

8 pg

8 pm2

8 pm

8 pp

8 ppb

8 ppm

8 ps

8 psi

8 quadrilliard

<Units Sandbox>

8 quadrillion

8 quadrillionth

8 quadrillionths

8 quintilliard

8 quintillion

8 quintillionth

8 quintillionths

8 s−1

8 s−2

8 s2

8 septilliard

8 septillion

8 septillionth

8 septillionths

8 sextilliard

8 sextillion

8 sextillionth

8 sextillionths

8 L☉

8 M☉

8 R☉

8 trilliard

8 trillion

8 trillionth

8 trillionths

8 u

8 14C yr BP

8 y

8 yA

8 yG

8 yHz

8 yK

8 yT

8 yV

8 year

8 years

8 yg

8 ym2

8 ym

8 yr

8 ys

8 zA

8 zG

8 zHz

8 zK

8 zT

8 zV

8 zg

8 zm2

8 zm

<Units Sandbox>

8 zs

8 °C

8 °F

8 °R

8 μA

8 µ
B

8 μG

8 µGal

8 μHz

8 μK

8 µ
N

8 μT

8 μV

8 μg

8 µm2

8 μm

8 μs

8 μg/dL

8 μg/dl

Compare Val/units with {{Convert}}

<Units Convert>

8 A A[convert: unknown unit]

8 G G

8 Hz Hz

8 K K

8 T T

8 V V[convert: unknown unit]

8 eV/c2 eV/c2[convert: unknown unit]

8 eV eV

8 g g

8 s s

8 AD AD[convert: unknown unit]

8 BC BC[convert: unknown unit]

8 BCE BCE[convert: unknown unit]

8 BP BP[convert: unknown unit]

8 C °C

8 C °C

8 CE CE[convert: unknown unit]

8 EA EA[convert: unknown unit]

8 EG EG

8 EHz EHz

8 EK EK

8 ET ET

8 EV EV[convert: unknown unit]

8 M⊕ Earth mass[convert: unknown unit]

8 R⊕ Earth radius[convert: unknown unit]

8 Eg Eg

8 Em2 Em2

8 Em Em

8 Es Es

8 F °F

8 F °F

8 Foo Foo[convert: unknown unit]

8 GA GA[convert: unknown unit]

8 GG GG

8 GHz GHz

8 GJ⋅mol−1 GJ.mol-1[convert: unknown unit]

8 GJ/mol GJ/mol

8 GK GK

8 GPa GPa

8 GT GT

8 GV GV[convert: unknown unit]

8 Ga Ga

8 Gal Gal[convert: unknown unit]

8 Gbit/s Gbit/s[convert: unknown unit]

8 GeV/c2 GeV/c2[convert: unknown unit]

8 GeV GeV

8 Gg Gg

8 Gm2 Gm2

8 Gm Gm

8 Gpc2 Gpc2[convert: unknown unit]

<Units Convert>

8 Gpc3 Gpc3[convert: unknown unit]

8 Gpc Gpc

8 Gs Gs

8 Gyr Ga

8 H⋅m−1 H.m-1[convert: unknown unit]

8 H H[convert: unknown unit]

8 J⋅mol−1 J.mol-1[convert: unknown unit]

8 J⋅s J.s[convert: unknown unit]

8 J/C J/°C

8 J/kg J/kg

8 J/mol J/mol

8 MJ Jupiter mass[convert: unknown unit]

8 RJ Jupiter radius[convert: unknown unit]

8 KPa KPa[convert: unknown unit]

8 L☉ L_Solar[convert: unknown unit]

8 L☉ L_solar[convert: unknown unit]

8 MA MA[convert: unknown unit]

8 MG MG

8 MHz MHz

8 MJ⋅mol−1 MJ.mol-1[convert: unknown unit]

8 MJ/mol MJ/mol

8 MK MK

8 MPa MPa

8 MT t

8 MV MV[convert: unknown unit]

8 M⊕ M_Earth[convert: unknown unit]

8 MJ M_Jupiter[convert: unknown unit]

8 M☉ M_Solar[convert: unknown unit]

8 M☉ M_solar[convert: unknown unit]

8 Ma Ma

8 Mbit/s Mbit/s[convert: unknown unit]

8 MeV/c2 MeV/c2[convert: unknown unit]

8 MeV MeV

8 Mg Mg

8 Mm2 Mm2

8 Mm Mm

8 Mpc2 Mpc2[convert: unknown unit]

8 Mpc3 Mpc3[convert: unknown unit]

8 Mpc Mpc

8 Ms Ms

8 N⋅A−2 N.A-2[convert: unknown unit]

8 Osm Osm[convert: unknown unit]

8 PA PA[convert: unknown unit]

8 PG PG

8 PHz PHz

8 PK PK

8 PT PT

8 PV PV[convert: unknown unit]

8 Pa Pa

8 Pg Pg

<Units Convert>

8 Pm2 Pm2

8 Pm Pm

8 Ps Ps

8 R °R

8 R °R

8 R⊕ R_Earth[convert: unknown unit]

8 RJ R_Jupiter[convert: unknown unit]

8 R☉ R_Solar[convert: unknown unit]

8 R☉ R_solar[convert: unknown unit]

8 L☉ Solar luminosity[convert: unknown unit]

8 M☉ Solar mass[convert: unknown unit]

8 R☉ Solar radius[convert: unknown unit]

8 TA TA[convert: unknown unit]

8 TG TG

8 THz THz

8 TJ⋅mol−1 TJ.mol-1[convert: unknown unit]

8 TJ/mol TJ/mol

8 TK TK

8 TT TT

8 TV TV[convert: unknown unit]

8 Tbit/s Tbit/s[convert: unknown unit]

8 TeV/c2 TeV/c2[convert: unknown unit]

8 TeV TeV

8 Tg Tg

8 Tm2 Tm2

8 Tm Tm

8 Torr Torr

8 Ts Ts

8 V⋅m−1 V.m-1[convert: unknown unit]

8 V/m V/m[convert: unknown unit]

8 VV VV[convert: unknown unit]

8 Wb Wb[convert: unknown unit]

8 YA YA[convert: unknown unit]

8 YG YG

8 YHz YHz

8 YK YK

8 YT YT

8 YV YV[convert: unknown unit]

8 Yg Yg

8 Ym2 Ym2

8 Ym Ym

8 Ys Ys

8 ZA ZA[convert: unknown unit]

8 ZG ZG

8 ZHz ZHz

8 ZK ZK

8 ZT ZT

8 ZV ZV[convert: unknown unit]

8 Zg Zg

8 Zm2 Zm2

<Units Convert>

8 Zm Zm

8 Zs Zs

8 aA aA[convert: unknown unit]

8 aG aG

8 aHz aHz

8 aK aK

8 aT aT

8 ag ag

8 am2 am2

8 am am

8 as as

8 au au

8 billiard billiard[convert: unknown unit]

8 billion billion[convert: unknown unit]

8 billionth billionth[convert: unknown unit]

8 billionths billionths[convert: unknown unit]

8 bit/s bit/s[convert: unknown unit]

8 bit/s bps[convert: unknown unit]

8 bya bya[convert: unknown unit]

8 byr Ga

8 byte/s byte/s[convert: unknown unit]

8 byte byte[convert: unknown unit]

8 c c[convert: unknown unit]

8 cA cA[convert: unknown unit]

8 cG cG

8 cHz cHz

8 cK cK

8 cT cT

8 cV cV[convert: unknown unit]

8 cg cg

8 cm−1 cm-1[convert: unknown unit]

8 cm2 cm2

8 cm cm

8 cs cs

8 dA dA[convert: unknown unit]

8 dG dG

8 dHz dHz

8 dK dK

8 dT dT

8 dV dV[convert: unknown unit]

8 daA daA[convert: unknown unit]

8 daG daG

8 daHz daHz

8 daK daK

8 daT daT

8 daV daV[convert: unknown unit]

8 dag dag

8 dam2 dam2

8 dam dam

8 das das

<Units Convert>

8 decilliard decilliard[convert: unknown unit]

8 decillion decillion[convert: unknown unit]

8 decillionth decillionth[convert: unknown unit]

8 decillionths decillionths[convert: unknown unit]

8 °C degC[convert: unknown unit]

8 °F degF[convert: unknown unit]

8 °R degR[convert: unknown unit]

8 dg dg

8 dm2 dm2

8 dm dm

8 ds ds

8 fA fA[convert: unknown unit]

8 fG fG

8 fHz fHz

8 fK fK

8 fT fT

8 fV fV[convert: unknown unit]

8 fb−1 fb-1[convert: unknown unit]

8 fg fg

8 fm2 fm2

8 fm fm

8 fs fs

8 g⋅mol−1 g.mol-1[convert: unknown unit]

8 g/L g/L

8 g/cm3 g/cm3

8 g/l g/l

8 g/mol g/mol

8 gal US gal

8 hA hA[convert: unknown unit]

8 hG hG

8 hHz hHz

8 hK hK

8 hT hT

8 hV hV[convert: unknown unit]

8 hg hg

8 hm2 hm2

8 hm hm

8 hs hs

8 kA kA[convert: unknown unit]

8 kG kG

8 kHz kHz

8 kJ⋅mol−1 kJ.mol-1[convert: unknown unit]

8 kJ/mol kJ/mol

8 kK kK

8 kT kT

8 kV kV[convert: unknown unit]

8 kW⋅h kW⋅h

8 kWh kWh

8 kW⋅h kW⋅h

8 ka ka

<Units Convert>

8 kbit/s kbit/s[convert: unknown unit]

8 keV/c2 keV/c2[convert: unknown unit]

8 keV keV

8 kg⋅mol−1 kg.mol-1[convert: unknown unit]

8 kg/cm3 kg/cm3

8 kg/m3 kg/m3

8 kg/mol kg/mol

8 kg kg

8 km2 km2

8 km3 km3

8 km km

8 kpc2 kpc2[convert: unknown unit]

8 kpc3 kpc3[convert: unknown unit]

8 kpc kpc

8 ks ks

8 kya kya[convert: unknown unit]

8 kyr ka

8 lbF lbf

8 lbm lbm[convert: unknown unit]

8 ly ly

8 m−1 m-1[convert: unknown unit]

8 m−2 m-2[convert: unknown unit]

8 m−3 m-3[convert: unknown unit]

8 m⋅s−1 m.s-1[convert: unknown unit]

8 m⋅s−2 m.s-2[convert: unknown unit]

8 m/s2 m/s2

8 m/s m/s

8 m m

8 mA mA[convert: unknown unit]

8 mG mG

8 mGal mGal[convert: unknown unit]

8 mHz mHz

8 mK mK

8 mT mT

8 mV mV[convert: unknown unit]

8 mas mas[convert: unknown unit]

8 µg/dL μg/dL

8 μg μg

8 μg μg

8 m m

8 m m

8 mev mev[convert: unknown unit]

8 mg/mL mg/mL

8 mg/ml mg/ml

8 mg mg

8 milliard milliard[convert: unknown unit]

8 mm2 mm2

8 mm mm

8 ms ms

8 muA muA[convert: unknown unit]

<Units Convert>

8 muG muG[convert: unknown unit]

8 muGal muGal[convert: unknown unit]

8 muHz muHz[convert: unknown unit]

8 muJ muJ[convert: unknown unit]

8 muK muK[convert: unknown unit]

8 muT muT[convert: unknown unit]

8 muV muV[convert: unknown unit]

8 mug/dL mug/dL[convert: unknown unit]

8 mug/dl mug/dl[convert: unknown unit]

8 mug mug[convert: unknown unit]

8 mum mum[convert: unknown unit]

8 mus mus[convert: unknown unit]

8 mya mya[convert: unknown unit]

8 myr Ma

8 nA nA[convert: unknown unit]

8 nG nG

8 nHz nHz

8 nK nK

8 nT nT

8 nV nV[convert: unknown unit]

8 ng ng

8 nm2 nm2

8 nm nm

8 nonilliard nonilliard[convert: unknown unit]

8 nonillion nonillion[convert: unknown unit]

8 nonillionth nonillionth[convert: unknown unit]

8 nonillionths nonillionths[convert: unknown unit]

8 ns ns

8 octilliard octilliard[convert: unknown unit]

8 octillion octillion[convert: unknown unit]

8 octillionth octillionth[convert: unknown unit]

8 octillionths octillionths[convert: unknown unit]

8 osmol osmol[convert: unknown unit]

8 pA pA[convert: unknown unit]

8 pG pG

8 pHz pHz

8 pK pK

8 pT pT

8 pV pV[convert: unknown unit]

8 pc2 pc2[convert: unknown unit]

8 pc3 pc3[convert: unknown unit]

8 pg pg

8 pm2 pm2

8 pm pm

8 pp pp[convert: unknown unit]

8 ppb ppb[convert: unknown unit]

8 ppm ppm[convert: unknown unit]

8 ps ps

8 psi psi

8 quadrilliard quadrilliard[convert: unknown unit]

<Units Convert>

8 quadrillion quadrillion[convert: unknown unit]

8 quadrillionth quadrillionth[convert: unknown unit]

8 quadrillionths quadrillionths[convert: unknown unit]

8 quintilliard quintilliard[convert: unknown unit]

8 quintillion quintillion[convert: unknown unit]

8 quintillionth quintillionth[convert: unknown unit]

8 quintillionths quintillionths[convert: unknown unit]

8 s−1 s-1[convert: unknown unit]

8 s−2 s-2[convert: unknown unit]

8 s2 s2[convert: unknown unit]

8 septilliard septilliard[convert: unknown unit]

8 septillion septillion[convert: unknown unit]

8 septillionth septillionth[convert: unknown unit]

8 septillionths septillionths[convert: unknown unit]

8 sextilliard sextilliard[convert: unknown unit]

8 sextillion sextillion[convert: unknown unit]

8 sextillionth sextillionth[convert: unknown unit]

8 sextillionths sextillionths[convert: unknown unit]

8 L☉ solar luminosity[convert: unknown unit]

8 M☉ M☉

8 R☉ R☉

8 trilliard trilliard[convert: unknown unit]

8 trillion trillion[convert: unknown unit]

8 trillionth trillionth[convert: unknown unit]

8 trillionths trillionths[convert: unknown unit]

8 u u[convert: unknown unit]

8 14C yr BP uBP[convert: unknown unit]

8 y y[convert: unknown unit]

8 yA yA[convert: unknown unit]

8 yG yG

8 yHz yHz

8 yK yK

8 yT yT

8 yV yV[convert: unknown unit]

8 year a

8 years yr

8 yg yg

8 ym2 ym2

8 ym ym

8 yr a

8 ys ys

8 zA zA[convert: unknown unit]

8 zG zG

8 zHz zHz

8 zK zK

8 zT zT

8 zV zV[convert: unknown unit]

8 zg zg

8 zm2 zm2

8 zm zm

<Units Convert>

8 zs zs

8 °C °C

8 °F °F

8 °R °R

8 μA µA[convert: unknown unit]

8 µ
B
µB[convert: unknown unit]

8 μG μG

8 µGal µGal[convert: unknown unit]

8 μHz μHz

8 μK μK

8 µ
N
μN

8 μT μT

8 μV µV[convert: unknown unit]

8 μg μg

8 µm2 μm2

8 μm μm

8 μs μs

8 μg/dL μg/dL

8 μg/dl μg/dl

Commentary

Per the above

Questionable links:

  • Ga goes to Hectare#Are instead of GigaAnum
  • mug goes to Mug (as in coffee)
  • mum goes to Mother

Wrong links going to letters of the alphabet or to DAB pages:

  • A,
  • EV, EK, EG, EA
  • GA, GK, GV,
  • H
  • MA, MG, MV
  • Osm
  • PA, PG, PK, PV
  • TA, TG, TK, VV,
  • V
  • Wb,
  • YA, YG, YK, YV
  • ZA, ZG, ZK, ZV
  • aA, aG, aK
  • c, cA, cG, cK, cV, cm-1
  • dA, dG, dK, dV,
  • fA, fG
  • hA, hG, hK, hV,
  • kA,
  • m-1, m-2, m-3, mA, mG, mK, mV, mas?, mug, mus, mya
  • nA, nG, nK, nV
  • pA, pG, pK, pV, pc3, ppb, ppm,
  • s-1, s-2, s2
  • u, uBP,
  • y, yA, yG, yK, yV,
  • zA , zG, zK, zV,
  • GREEK LETTER MICRO A is going to MA
  • GREEK LETTER MICRO K is going to MK
  • GREEK LETTER MICRO V is going to MV

Interesting differences from Val:

  • Ga
  • Gg
  • Gs (Convert's is better)
  • J/Mol
  • KPa should be kPa in both
  • MHz
  • MJ/Mol
  • MT MegaTesla verses t for tonne
  • Ma
  • Mg (Megagram V tonne)
  • Ms (second V megaSecond) Convert's is better)
  • Pm (Convert's is better Petameter)
  • Ps (Convert's is better Petasecond)
  • Tg (Tonne V Gram)
  • Tm (Convert's is better Terameter)
  • Ts (Convert's is better Terasecond)
  • VV (Volt V W)??
  • Ys (Convert's is better Yotasecond)
  • Zm (Convert's is better Zettameter)
  • Zs (Convert's is better Zettasecond)
  • billiard
  • billion
  • billionth
  • byr V Ga
  • cg
  • cm-1 (could go to article called "Reciprocal length")
  • decilliard
  • decillion
  • degF, degC, degR
  • fm (Convert's is better)
  • g/L (grams per Liter V Density)
  • g/cm3
  • g/l (grams per liter, but convert abbreviates liter both acceptable ways)
  • g/mol
  • kg/mol
  • ks (Convert's is better)
  • kyr (kyr V millenium)
  • lbf (markup only)
  • mg/mL (grams per liter V Density)
  • milliard
  • myr (million year V Annum)
  • nonillion
  • octillion
  • quadrilliard
  • quadrillion
  • quadrillionth
  • quintillion
  • septillion
  • sextilliard
  • sextillion
  • trilliard
  • trillion
  • trillionth
  • yr (markup a, and year V annum)
  • year (ditto)
  • GREEK LETTER MICRO N differs in markup (Nuclear Magneton V Newton)