Difference between revisions of "Template:Chem molar mass/testcases"

From blackwiki
Jump to navigation Jump to search
imported>DePiep
imported>DePiep
Line 57: Line 57:
 
==Params==
 
==Params==
 
;no or zeros input
 
;no or zeros input
* {{Chem molar mass}} --
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes}}
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|}} -- |
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|}}
{{testcase table||_style = background:lemonchiffon; |_showcode=yes| C= 0 }} -- C=0
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes| C=0 }}  
  
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|C= {{{C|}}}}} -- C=<nowiki>{{{C|}}}</nowiki>
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|C= {{{C|}}}}} -- C=<nowiki>{{{C|}}}</nowiki>
 
;by symbol
 
;by symbol
{{testcase table||_style = background:lemonchiffon; |_showcode=yes| C = 1 | H = 1|O=1}} -- C H O
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes| C = 1 | H = 1|O=1}}  
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|Au= 10}} -- Au10
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|Au= 10}}
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|Hg =10}} -- Hg10
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|Hg =10}}
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|H=1}} -- H
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|H=1}}
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|D=1}} -- D
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|D=1}}
  
 
;unit
 
;unit
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|C=1|H=1|O=1|unit=Kg/Kmol}}
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|C=1|H=1|O=1|unit=Kg/Kmol}}
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|Au=10|unit=UUNNIITT}}
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|Au=10|unit=UUNNIITT}}
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|Hg=10|unit=g/mol}}
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|Hg=10|unit=g/mol}}
  
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|Au=10|xunit=UUNNIITT}}
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|Au=10|xunit=UUNNIITT}}
  
 
;fixed input
 
;fixed input
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|fixed=FIXVAL}}
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|fixed=FIXVAL}}
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|C=1|fixed=FIXVAL}}
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|C=1|fixed=FIXVAL}}
  
 
;maint catname vs fixed & value
 
;maint catname vs fixed & value
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|fixed=FIXVAL|catname=MaintCat}}
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|fixed=FIXVAL|catname=MaintCat}}
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|C=1|fixed=FIXVAL|catname=MaintCat}}
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|C=1|fixed=FIXVAL|catname=MaintCat}}
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|C=1|catname=MaintCat}}
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|C=1|catname=MaintCat}}
  
 
===rounding===
 
===rounding===
 
;round yes/no/number/blank. for Be  9.0121831
 
;round yes/no/number/blank. for Be  9.0121831
  
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|Be=1}} --none
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|Be=1}} --none
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|Be=1|round=}} --blank
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|Be=1|round=}} --blank
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|Be=1|round=no}} --no
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|Be=1|round=no}} --no
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|Be=1|round=yes}} --yes
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|Be=1|round=yes}} --yes
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|Be=1|round=0}} --0
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|Be=1|round=0}} --0
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|Be=1|round=1}}
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|Be=1|round=1}}
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|Be=1|round=2}}
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|Be=1|round=2}}
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|Be=1|round=3}}
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|Be=1|round=3}}
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|Be=1|round=4}}
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|Be=1|round=4}}
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|Be=1|round=5}}
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|Be=1|round=5}}
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|Be=1|round=6}}
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|Be=1|round=6}}
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|Be=1|round=7}} --7
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|Be=1|round=7}} --7
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|Be=1|round=8}} --8
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|Be=1|round=8}} --8
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|Be=1|round=9}} --9
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|Be=1|round=9}} --9
  
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|Be=1|round=-1}} --  -1
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|Be=1|round=-1}} --  -1
  
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|Hg=1|H=1|Li=2|round=yes}}
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|Hg=1|H=1|Li=2|round=yes}}
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|Hg=1|H=1|Li=2|round=no}}
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|Hg=1|H=1|Li=2|round=no}}
  
  
 
;ref and cmt
 
;ref and cmt
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|fixed=FIXVAL|Pb=10|ref=<ref>REF</ref>|comment=Cmt}}
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|fixed=FIXVAL|Pb=10|ref=<ref>REF</ref>|comment=Cmt}}
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|fixed=FIXVAL|ref=<ref>REF</ref>|comment=Cmt}}
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|fixed=FIXVAL|ref=<ref>REF</ref>|comment=Cmt}}
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|Pb=10|ref=<ref>REF</ref>}}
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|Pb=10|ref=<ref>REF</ref>}}
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|Pb=10|ref=<ref>REF</ref>|comment=Cmt}}
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|Pb=10|ref=<ref>REF</ref>|comment=Cmt}}
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|Pb=10|comment=Cmt}}
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|Pb=10|comment=Cmt}}
  
 
;ref and cmt, no symbols
 
;ref and cmt, no symbols
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|ref=<ref>REF</ref>}}
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|ref=<ref>REF</ref>}}
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|ref=<ref>REF</ref>|comment=Cmt}}
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|ref=<ref>REF</ref>|comment=Cmt}}
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|comment=Cmt}}
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|comment=Cmt}}
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|fixed=999.99|comment=Cmt}}
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|fixed=999.99|comment=Cmt}}
  
 
;catname
 
;catname
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|C=1|fixed=12 kg|catname=MaintCat}}
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|C=1|fixed=12 kg|catname=MaintCat}}
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|C=1|fixed=12 kg|catname=Category:MaintCat}}
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|C=1|fixed=12 kg|catname=Category:MaintCat}}
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|C=1|fixed=12 kg|catname=category:MaintCat}}
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|C=1|fixed=12 kg|catname=category:MaintCat}}
{{testcase table||_style = background:lemonchiffon; |_showcode=yes|C=1|fixed=12 kg|catname=}}
+
{{testcase table|_style = background:lemonchiffon; |_showcode=yes|C=1|fixed=12 kg|catname=}}
  
 
==Rounding==
 
==Rounding==

Revision as of 08:47, 6 April 2019

See also:
{{Chem molar mass/testcases/elements1-60}} -- elements
{{Chem molar mass/testcases/elements61-118}} -- elements
{{Chem molar mass/testcases/charges}} -- charged molecules |charge=

CO2

Template:Testcase table

tests

Script error: No such module "Purge". Molecular mass


Checks

Raised [1],
Talked here
H2S

Template:Testcase table

O3

Template:Testcase table

NaCl

Template:Testcase table

Params

no or zeros input

Template:Testcase table Template:Testcase table Template:Testcase table

Template:Testcase table -- C={{{C|}}}

by symbol

Template:Testcase table Template:Testcase table Template:Testcase table Template:Testcase table Template:Testcase table

unit

Template:Testcase table Template:Testcase table Template:Testcase table

Template:Testcase table

fixed input

Template:Testcase table Template:Testcase table

maint catname vs fixed & value

Template:Testcase table Template:Testcase table Template:Testcase table

rounding

round yes/no/number/blank. for Be 9.0121831

Template:Testcase table --none Template:Testcase table --blank Template:Testcase table --no Template:Testcase table --yes Template:Testcase table --0 Template:Testcase table Template:Testcase table Template:Testcase table Template:Testcase table Template:Testcase table Template:Testcase table Template:Testcase table --7 Template:Testcase table --8 Template:Testcase table --9

Template:Testcase table -- -1

Template:Testcase table Template:Testcase table


ref and cmt

Template:Testcase table Template:Testcase table Template:Testcase table Template:Testcase table Template:Testcase table

ref and cmt, no symbols

Template:Testcase table Template:Testcase table Template:Testcase table Template:Testcase table

catname

Template:Testcase table Template:Testcase table Template:Testcase table Template:Testcase table

Rounding

Nth_User tests

Now uses {{Chem molar mass/sandbox}}

Water: 0

Dihydrogen monosulfide: 0

Hydroxide: 0

Hydroxyl radical: 0

Phosphorus pentafluoride: 0

Cesium auride: 0

Dioxygenyl: 0

Dioxygen: 0

Superoxide: 0

Peroxide: 0

Ozone: 0

Ozonide: 0

Fluorine: 0

Fluoride: 0

Arsenic: 0

Arsenide: 0

Hexafluorophosphate: 0

Tetrafluoroberyllate: 0

Dysprosium: 0

Sodium chloride: 0

Carbon dioxide: 0

Selenium dibromide: 0

Yttrium: 0

Potassium: 0

Potassium cation: 0

Diphosphorus: 0

Deuterium: 0

Electron: 0

Test for when enthalpy of formation makes a difference

Substance Molar mass without enthaply of formation Molar mass with enthaply of formation
Sodium fluoride 0 0
Fluoride 0 0
Cesium fluoride 0 0
Phosphorus pentafluoride 0 0
Phosphorus trifluoride 0 0
Red phosphorus 0 0
Black phosphorus 0 0

Test interval mode

Substance Uncertainty mode (default) Interval mode
Lithium 0 0
Argon 0 0
Sulfur 0 0
Lithium sulfide 0 0
Lithium borohydride 0 0
Thallium 0 0

References