mirror of
https://github.com/tiffany352/rink-rs
synced 2024-11-10 13:44:15 +00:00
Test error case in eval()
This commit is contained in:
parent
ff8f243177
commit
f2f57612dc
1 changed files with 8 additions and 0 deletions
|
@ -353,3 +353,11 @@ fn test_non_conversion_input() {
|
|||
fn test_of_non_substance() {
|
||||
test("mass of 1kg", "Not defined: mass of <1 kilogram (mass)>");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_mul_not_defined() {
|
||||
test(
|
||||
"#2018-10-03# * kg",
|
||||
"Operation is not defined: <1 (dimensionless)> * <2018-10-03 00:00:00 +00:00>",
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue