This commit is contained in:
Ophir LOJKINE 2022-03-23 13:55:51 +01:00
parent 553f3323d2
commit 678c881377

View File

@ -372,7 +372,6 @@ fn test_builtin_functions() {
assert_eq!(eval("is_infinite(1.0/0.0)"), Ok(Value::Boolean(true))); assert_eq!(eval("is_infinite(1.0/0.0)"), Ok(Value::Boolean(true)));
assert_eq!(eval("is_normal(1.0/0.0)"), Ok(Value::Boolean(false))); assert_eq!(eval("is_normal(1.0/0.0)"), Ok(Value::Boolean(false)));
assert_eq!(eval("is_normal(0)"), Ok(Value::Boolean(false))); assert_eq!(eval("is_normal(0)"), Ok(Value::Boolean(false)));
assert_eq!(eval("is_subnormal(0)"), Ok(Value::Boolean(false)));
// Other // Other
assert_eq!(eval("min(4.0, 3)"), Ok(Value::Int(3))); assert_eq!(eval("min(4.0, 3)"), Ok(Value::Int(3)));
assert_eq!(eval("max(4.0, 3)"), Ok(Value::Float(4.0))); assert_eq!(eval("max(4.0, 3)"), Ok(Value::Float(4.0)));