Jump to content

Template:Val/units/testcases

From pool

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>

A

G

Hz

K

T

V

eV/c2

eV

g

s

AD

BC

BCE

BP

C

C

CE

EA

EG

EHz

EK

ET

EV

M

R

Eg

Em2

Em

Es

F

F

Foo

GA

GG

GHz

GJ⋅mol−1

GJ/mol

GK

GPa

GT

GV

Ga

Gal

Gbit/s

GeV/c2

GeV

Gg

Gm2

Gm

Gpc2

<Units Sandbox>

Gpc3

Gpc

Gs

Gyr

H⋅m−1

H

J⋅mol−1

J⋅s

J/C

J/kg

J/mol

MJ

RJ

KPa

L

L

MA

MG

MHz

MJ⋅mol−1

MJ/mol

MK

MPa

MT

MV

M

MJ

M

M

Ma

Mbit/s

MeV/c2

MeV

Mg

Mm2

Mm

Mpc2

Mpc3

Mpc

Ms

N⋅A−2

Osm

PA

PG

PHz

PK

PT

PV

Pa

Pg

<Units Sandbox>

Pm2

Pm

Ps

R

R

R

RJ

R

R

L

M

R

TA

TG

THz

TJ⋅mol−1

TJ/mol

TK

TT

TV

Tbit/s

TeV/c2

TeV

Tg

Tm2

Tm

Torr

Ts

V⋅m−1

V/m

VV

Wb

YA

YG

YHz

YK

YT

YV

Yg

Ym2

Ym

Ys

ZA

ZG

ZHz

ZK

ZT

ZV

Zg

Zm2

<Units Sandbox>

Zm

Zs

aA

aG

aHz

aK

aT

ag

am2

am

as

au

billiard

billion

billionth

billionths

bit/s

bit/s

bya

byr

byte/s

byte

c

cA

cG

cHz

cK

cT

cV

cg

cm−1

cm2

cm

cs

dA

dG

dHz

dK

dT

dV

daA

daG

daHz

daK

daT

daV

dag

dam2

dam

das

<Units Sandbox>

decilliard

decillion

decillionth

decillionths

°C

°F

°R

dg

dm2

dm

ds

fA

fG

fHz

fK

fT

fV

fb−1

fg

fm2

fm

fs

g⋅mol−1

g/L

g/cm3

g/l

g/mol

gal

hA

hG

hHz

hK

hT

hV

hg

hm2

hm

hs

kA

kG

kHz

kJ⋅mol−1

kJ/mol

kK

kT

kV

kW⋅h

kWh

kW⋅h

ka

<Units Sandbox>

kbit/s

keV/c2

keV

kg⋅mol−1

kg/cm3

kg/m3

kg/mol

kg

km2

km3

km

kpc2

kpc3

kpc

ks

kya

kyr

lbF

lbm

ly

m−1

m−2

m−3

m⋅s−1

m⋅s−2

m/s2

m/s

m

mA

mG

mGal

mHz

mK

mT

mV

mas

µg/dL

μg

μg

m

m

mev

mg/mL

mg/ml

mg

milliard

mm2

mm

ms

muA

<Units Sandbox>

muG

muGal

muHz

muJ

muK

muT

muV

mug/dL

mug/dl

mug

mum

mus

mya

myr

nA

nG

nHz

nK

nT

nV

ng

nm2

nm

nonilliard

nonillion

nonillionth

nonillionths

ns

octilliard

octillion

octillionth

octillionths

osmol

pA

pG

pHz

pK

pT

pV

pc2

pc3

pg

pm2

pm

pp

ppb

ppm

ps

psi

quadrilliard

<Units Sandbox>

quadrillion

quadrillionth

quadrillionths

quintilliard

quintillion

quintillionth

quintillionths

s−1

s−2

s2

septilliard

septillion

septillionth

septillionths

sextilliard

sextillion

sextillionth

sextillionths

L

M

R

trilliard

trillion

trillionth

trillionths

u

14C yr BP

y

yA

yG

yHz

yK

yT

yV

year

years

yg

ym2

ym

yr

ys

zA

zG

zHz

zK

zT

zV

zg

zm2

zm

<Units Sandbox>

zs

°C

°F

°R

μA

µ
B

μG

µGal

μHz

μK

µ
N

μT

μV

μg

µm2

μm

μs

μg/dL

μg/dl

Compare Val/units with {{Convert}}

<Units Convert>

A A[convert: unknown unit]

G G

Hz Hz

K K

T T

V V[convert: unknown unit]

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

eV eV

g g

s s

AD AD[convert: unknown unit]

BC BC[convert: unknown unit]

BCE BCE[convert: unknown unit]

BP BP[convert: unknown unit]

C °C

C °C

CE CE[convert: unknown unit]

EA EA[convert: unknown unit]

EG EG

EHz EHz

EK EK

ET ET

EV EV[convert: unknown unit]

M Earth mass[convert: unknown unit]

R Earth radius[convert: unknown unit]

Eg Eg

Em2 Em2

Em Em

Es Es

F °F

F °F

Foo Foo[convert: unknown unit]

GA GA[convert: unknown unit]

GG GG

GHz GHz

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

GJ/mol GJ/mol

GK GK

GPa GPa

GT GT

GV GV[convert: unknown unit]

Ga Ga

Gal Gal[convert: unknown unit]

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

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

GeV GeV

Gg Gg

Gm2 Gm2

Gm Gm

Gpc2 Gpc2[convert: unknown unit]

<Units Convert>

Gpc3 Gpc3[convert: unknown unit]

Gpc Gpc

Gs Gs

Gyr Ga

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

H H[convert: unknown unit]

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

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

J/C J/°C

J/kg J/kg

J/mol J/mol

MJ Jupiter mass[convert: unknown unit]

RJ Jupiter radius[convert: unknown unit]

KPa KPa[convert: unknown unit]

L L_Solar[convert: unknown unit]

L L_solar[convert: unknown unit]

MA MA[convert: unknown unit]

MG MG

MHz MHz

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

MJ/mol MJ/mol

MK MK

MPa MPa

MT t

MV MV[convert: unknown unit]

M M_Earth[convert: unknown unit]

MJ M_Jupiter[convert: unknown unit]

M M_Solar[convert: unknown unit]

M M_solar[convert: unknown unit]

Ma Ma

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

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

MeV MeV

Mg Mg

Mm2 Mm2

Mm Mm

Mpc2 Mpc2[convert: unknown unit]

Mpc3 Mpc3[convert: unknown unit]

Mpc Mpc

Ms Ms

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

Osm Osm[convert: unknown unit]

PA PA[convert: unknown unit]

PG PG

PHz PHz

PK PK

PT PT

PV PV[convert: unknown unit]

Pa Pa

Pg Pg

<Units Convert>

Pm2 Pm2

Pm Pm

Ps Ps

R °R

R °R

R R_Earth[convert: unknown unit]

RJ R_Jupiter[convert: unknown unit]

R R_Solar[convert: unknown unit]

R R_solar[convert: unknown unit]

L Solar luminosity[convert: unknown unit]

M Solar mass[convert: unknown unit]

R Solar radius[convert: unknown unit]

TA TA[convert: unknown unit]

TG TG

THz THz

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

TJ/mol TJ/mol

TK TK

TT TT

TV TV[convert: unknown unit]

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

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

TeV TeV

Tg Tg

Tm2 Tm2

Tm Tm

Torr Torr

Ts Ts

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

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

VV VV[convert: unknown unit]

Wb Wb[convert: unknown unit]

YA YA[convert: unknown unit]

YG YG

YHz YHz

YK YK

YT YT

YV YV[convert: unknown unit]

Yg Yg

Ym2 Ym2

Ym Ym

Ys Ys

ZA ZA[convert: unknown unit]

ZG ZG

ZHz ZHz

ZK ZK

ZT ZT

ZV ZV[convert: unknown unit]

Zg Zg

Zm2 Zm2

<Units Convert>

Zm Zm

Zs Zs

aA aA[convert: unknown unit]

aG aG

aHz aHz

aK aK

aT aT

ag ag

am2 am2

am am

as as

au au

billiard billiard[convert: unknown unit]

billion billion[convert: unknown unit]

billionth billionth[convert: unknown unit]

billionths billionths[convert: unknown unit]

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

bit/s bps[convert: unknown unit]

bya bya[convert: unknown unit]

byr Ga

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

byte byte[convert: unknown unit]

c c[convert: unknown unit]

cA cA[convert: unknown unit]

cG cG

cHz cHz

cK cK

cT cT

cV cV[convert: unknown unit]

cg cg

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

cm2 cm2

cm cm

cs cs

dA dA[convert: unknown unit]

dG dG

dHz dHz

dK dK

dT dT

dV dV[convert: unknown unit]

daA daA[convert: unknown unit]

daG daG

daHz daHz

daK daK

daT daT

daV daV[convert: unknown unit]

dag dag

dam2 dam2

dam dam

das das

<Units Convert>

decilliard decilliard[convert: unknown unit]

decillion decillion[convert: unknown unit]

decillionth decillionth[convert: unknown unit]

decillionths decillionths[convert: unknown unit]

°C degC[convert: unknown unit]

°F degF[convert: unknown unit]

°R degR[convert: unknown unit]

dg dg

dm2 dm2

dm dm

ds ds

fA fA[convert: unknown unit]

fG fG

fHz fHz

fK fK

fT fT

fV fV[convert: unknown unit]

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

fg fg

fm2 fm2

fm fm

fs fs

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

g/L g/L

g/cm3 g/cm3

g/l g/l

g/mol g/mol

gal US gal

hA hA[convert: unknown unit]

hG hG

hHz hHz

hK hK

hT hT

hV hV[convert: unknown unit]

hg hg

hm2 hm2

hm hm

hs hs

kA kA[convert: unknown unit]

kG kG

kHz kHz

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

kJ/mol kJ/mol

kK kK

kT kT

kV kV[convert: unknown unit]

kW⋅h kW⋅h

kWh kWh

kW⋅h kW⋅h

ka ka

<Units Convert>

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

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

keV keV

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

kg/cm3 kg/cm3

kg/m3 kg/m3

kg/mol kg/mol

kg kg

km2 km2

km3 km3

km km

kpc2 kpc2[convert: unknown unit]

kpc3 kpc3[convert: unknown unit]

kpc kpc

ks ks

kya kya[convert: unknown unit]

kyr ka

lbF lbf

lbm lbm[convert: unknown unit]

ly ly

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

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

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

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

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

m/s2 m/s2

m/s m/s

m m

mA mA[convert: unknown unit]

mG mG

mGal mGal[convert: unknown unit]

mHz mHz

mK mK

mT mT

mV mV[convert: unknown unit]

mas mas[convert: unknown unit]

µg/dL μg/dL

μg μg

μg μg

m m

m m

mev mev[convert: unknown unit]

mg/mL mg/mL

mg/ml mg/ml

mg mg

milliard milliard[convert: unknown unit]

mm2 mm2

mm mm

ms ms

muA muA[convert: unknown unit]

<Units Convert>

muG muG[convert: unknown unit]

muGal muGal[convert: unknown unit]

muHz muHz[convert: unknown unit]

muJ muJ[convert: unknown unit]

muK muK[convert: unknown unit]

muT muT[convert: unknown unit]

muV muV[convert: unknown unit]

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

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

mug mug[convert: unknown unit]

mum mum[convert: unknown unit]

mus mus[convert: unknown unit]

mya mya[convert: unknown unit]

myr Ma

nA nA[convert: unknown unit]

nG nG

nHz nHz

nK nK

nT nT

nV nV[convert: unknown unit]

ng ng

nm2 nm2

nm nm

nonilliard nonilliard[convert: unknown unit]

nonillion nonillion[convert: unknown unit]

nonillionth nonillionth[convert: unknown unit]

nonillionths nonillionths[convert: unknown unit]

ns ns

octilliard octilliard[convert: unknown unit]

octillion octillion[convert: unknown unit]

octillionth octillionth[convert: unknown unit]

octillionths octillionths[convert: unknown unit]

osmol osmol[convert: unknown unit]

pA pA[convert: unknown unit]

pG pG

pHz pHz

pK pK

pT pT

pV pV[convert: unknown unit]

pc2 pc2[convert: unknown unit]

pc3 pc3[convert: unknown unit]

pg pg

pm2 pm2

pm pm

pp pp[convert: unknown unit]

ppb ppb[convert: unknown unit]

ppm ppm[convert: unknown unit]

ps ps

psi psi

quadrilliard quadrilliard[convert: unknown unit]

<Units Convert>

quadrillion quadrillion[convert: unknown unit]

quadrillionth quadrillionth[convert: unknown unit]

quadrillionths quadrillionths[convert: unknown unit]

quintilliard quintilliard[convert: unknown unit]

quintillion quintillion[convert: unknown unit]

quintillionth quintillionth[convert: unknown unit]

quintillionths quintillionths[convert: unknown unit]

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

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

s2 s2[convert: unknown unit]

septilliard septilliard[convert: unknown unit]

septillion septillion[convert: unknown unit]

septillionth septillionth[convert: unknown unit]

septillionths septillionths[convert: unknown unit]

sextilliard sextilliard[convert: unknown unit]

sextillion sextillion[convert: unknown unit]

sextillionth sextillionth[convert: unknown unit]

sextillionths sextillionths[convert: unknown unit]

L solar luminosity[convert: unknown unit]

M M

R R

trilliard trilliard[convert: unknown unit]

trillion trillion[convert: unknown unit]

trillionth trillionth[convert: unknown unit]

trillionths trillionths[convert: unknown unit]

u u[convert: unknown unit]

14C yr BP uBP[convert: unknown unit]

y y[convert: unknown unit]

yA yA[convert: unknown unit]

yG yG

yHz yHz

yK yK

yT yT

yV yV[convert: unknown unit]

year a

years yr

yg yg

ym2 ym2

ym ym

yr a

ys ys

zA zA[convert: unknown unit]

zG zG

zHz zHz

zK zK

zT zT

zV zV[convert: unknown unit]

zg zg

zm2 zm2

zm zm

<Units Convert>

zs zs

°C °C

°F °F

°R °R

μA µA[convert: unknown unit]

µ
B
µB[convert: unknown unit]

μG μG

µGal µGal[convert: unknown unit]

μHz μHz

μK μK

µ
N
μN

μT μT

μV µV[convert: unknown unit]

μg μg

µm2 μm2

μm μm

μs μs

μg/dL μg/dL

μ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)
This content is in the Template Namespace. Used for page-templates that can be re-used across the wiki.