Fixed integrate function test

This commit is contained in:
bakk 2021-05-17 18:15:49 +02:00
parent 455db4f0f1
commit b2a128d4d1

View File

@ -578,11 +578,11 @@ mod tests {
*binary(
binary(var("x"), TokenKind::Power, literal(3f64)),
TokenKind::Star,
binary(var("d"), TokenKind::Star, var("x")),
var("dx"),
),
],
));
assert!((interpret(stmt).unwrap().unwrap().to_f64() - 60f64).abs() < 1f64);
assert!((interpret(stmt).unwrap().unwrap().to_f64() - 60f64).abs() < 0.001f64);
}
}