mirror of
https://github.com/tiffany352/rink-rs
synced 2024-11-10 13:44:15 +00:00
Test formula.rs
This commit is contained in:
parent
d54d410d15
commit
f7bf043836
1 changed files with 12 additions and 0 deletions
|
@ -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",
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue