Test formula.rs

This commit is contained in:
Colin Benner 2018-10-05 15:24:44 +02:00
parent d54d410d15
commit f7bf043836

View file

@ -550,5 +550,17 @@ fn test_try_decode_fail() {
"#abc#",
"Most likely pattern `--monthnum-day[ hour24:min[:sec][ offset]]` failed: \
Expected `-`, got `abc`",
)
}
#[test]
fn test_formula() {
test(
"methane=CH4",
"CH4: molar_mass = 0.01604276 kilogram / mole",
);
test(
"NaCl",
"NaCl: molar_mass = approx. 0.05844246 kilogram / mole",
);
}