قالب:Val/units/testcases


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    either    "{{Val/units|$F[1]}} {{Val/units/sandbox|$F[1]}}\n"'    or    "{{Val/units|$F[1]}} {{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 A

G G

Hz Hz

K K

T T

V V

eV/c2 eV/c2

eV eV

g g

s s

AD AD

BC BC

BCE BCE

BP BP

C C

C C

CE CE

EA EA

EG EG

EHz EHz

EK EK

ET ET

EV EV

M M

R R

Eg Eg

Em2 Em2

Em Em

Es Es

F F

F F

Foo Foo

GA GA

GG GG

GHz GHz

GJ⋅mol−1 GJ⋅mol−1

GJ/mol GJ/mol

GK GK

GPa GPa

GT GT

GV GV

Ga Ga

Gal Gal

Gbit/s Gbit/s

GeV/c2 GeV/c2

GeV GeV

Gg Gg

Gm2 Gm2

Gm Gm

Gpc2 Gpc2

<Units Sandbox>

Gpc3 Gpc3

Gpc Gpc

Gs Gs

Ga Ga

H⋅m−1 H·m−1

H H

J⋅mol−1 J⋅mol−1

J⋅s J⋅s

J/C J/C

J/kg J/kg

J/mol J/mol

MJ MJ

RJ RJ

KPa KPa

L L

L L

MA MA

MG MG

MHz MHz

MJ⋅mol−1 MJ⋅mol−1

MJ/mol MJ/mol

MK MK

MPa MPa

MT MT

MV MV

M M

MJ MJ

M M

M M

Ma Ma

Mbit/s Mbit/s

MeV/c2 MeV/c2

MeV MeV

Mg Mg

Mm2 Mm2

Mm Mm

Mpc2 Mpc2

Mpc3 Mpc3

Mpc Mpc

Ms Ms

N⋅A−2 N⋅A−2

Osm Osm

PA PA

PG PG

PHz PHz

PK PK

PT PT

PV PV

Pa Pa

Pg Pg

<Units Sandbox>

Pm2 Pm2

Pm Pm

Ps Ps

R R

R R

R R

RJ RJ

R R

R R

L L

M M

R R

TA TA

TG TG

THz THz

TJ⋅mol−1 TJ⋅mol−1

TJ/mol TJ/mol

TK TK

TT TT

TV TV

Tbit/s Tbit/s

TeV/c2 TeV/c2

TeV TeV

Tg Tg

Tm2 Tm2

Tm Tm

Torr Torr

Ts Ts

V⋅m−1 V⋅m−1

V/m V/m

VV VV

Wb Wb

YA YA

YG YG

YHz YHz

YK YK

YT YT

YV YV

Yg Yg

Ym2 Ym2

Ym Ym

Ys Ys

ZA ZA

ZG ZG

ZHz ZHz

ZK ZK

ZT ZT

ZV ZV

Zg Zg

Zm2 Zm2

<Units Sandbox>

Zm Zm

Zs Zs

aA aA

aG aG

aHz aHz

aK aK

aT aT

ag ag

am2 am2

am am

as as

au au

billiard billiard

billion billion

billionth billionth

billionths billionths

bit/s bit/s

bit/s bit/s

bya bya

byr byr

byte/s byte/s

byte byte

c c

cA cA

cG cG

cHz cHz

cK cK

cT cT

cV cV

cg cg

cm−1 cm−1

cm2 cm2

cm cm

cs cs

dA dA

dG dG

dHz dHz

dK dK

dT dT

dV dV

daA daA

daG daG

daHz daHz

daK daK

daT daT

daV daV

dag dag

dam2 dam2

dam dam

das das

<Units Sandbox>

decilliard decilliard

decillion decillion

decillionth decillionth

decillionths decillionths

°C °C

°F °F

°R °R

dg dg

dm2 dm2

dm dm

ds ds

fA fA

fG fG

fHz fHz

fK fK

fT fT

fV fV

fb−1 fb−1

fg fg

fm2 fm2

fm fm

fs fs

g⋅mol−1 g⋅mol−1

g/L g/L

g/cm3 g/cm3

g/L g/L

g/mol g/mol

gal gal

hA hA

hG hG

hHz hHz

hK hK

hT hT

hV hV

hg hg

hm2 hm2

hm hm

hs hs

kA kA

kG kG

kHz kHz

kJ⋅mol−1 kJ⋅mol−1

kJ/mol kJ/mol

kK kK

kT kT

kV kV

kW⋅h kW⋅h

kWh kWh

kW⋅h kW⋅h

ka ka

<Units Sandbox>

kbit/s kbit/s

keV/c2 keV/c2

keV keV

kg⋅mol−1 kg⋅mol−1

kg/cm3 kg/cm3

kg/m3 kg/m3

M M

kg kg

km2 km2

km3 km3

km km

kpc2 kpc2

kpc3 kpc3

kpc kpc

ks ks

kya kya

kyr kyr

lbF lbF

lbm lbm

ly ly

m−1 m−1

m−2 m−2

m−3 m−3

m⋅s−1 m⋅s−1

m⋅s−2 m⋅s−2

m/s2 m/s2

m/s m/s

m m

mA mA

mG mG

mGal mGal

mHz mHz

mK mK

mT mT

mV mV

mas mas

µg/dL µg/dL

μg μg

μg μg

m m

m m

meV meV

mg/mL mg/mL

mg/mL mg/mL

mg mg

milliard milliard

mm2 mm2

mm mm

ms ms

muA muA

<Units Sandbox>

muG muG

muGal muGal

muHz muHz

muJ muJ

muK muK

muT muT

muV muV

mug/dL mug/dL

mug/dl mug/dl

mug mug

mum mum

mus mus

mya mya

myr myr

nA nA

nG nG

nHz nHz

nK nK

nT nT

nV nV

ng ng

nm2 nm2

nm nm

nonilliard nonilliard

nonillion nonillion

nonillionth nonillionth

nonillionths nonillionths

ns ns

octilliard octilliard

octillion octillion

octillionth octillionth

octillionths octillionths

osmol osmol

pA pA

pG pG

pHz pHz

pK pK

pT pT

pV pV

pc2 pc2

pc3 pc3

pg pg

pm2 pm2

pm pm

pp pp

ppb ppb

ppm ppm

ps ps

psi psi

quadrilliard quadrilliard

<Units Sandbox>

quadrillion quadrillion

quadrillionth quadrillionth

quadrillionths quadrillionths

quintilliard quintilliard

quintillion quintillion

quintillionth quintillionth

quintillionths quintillionths

s−1 s−1

s−2 s−2

s2 s2

septilliard septilliard

septillion septillion

septillionth septillionth

septillionths septillionths

sextilliard sextilliard

sextillion sextillion

sextillionth sextillionth

sextillionths sextillionths

L L

M M

R R

trilliard trilliard

trillion trillion

trillionth trillionth

trillionths trillionths

u u

14C yr BP 14C yr BP

y y

yA yA

yG yG

yHz yHz

yK yK

yT yT

yV yV

year year

years years

yg yg

ym2 ym2

ym ym

yr yr

ys ys

zA zA

zG zG

zHz zHz

zK zK

zT zT

zV zV

zg zg

zm2 zm2

zm zm

<Units Sandbox>

zs zs

°C °C

°F °F

°R °R

μA μA

µ
B
µ
B

μG μG

µGal µGal

μHz μHz

μK μK

µ
N
µ
N

μT μT

μV μV

μg μg

µm2 µm2

μm μm

μs μs

μg/dL μg/dL

μ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

Ga 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

M 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 acceptible 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)