mirror of
https://github.com/PaddiM8/kalker.git
synced 2024-12-15 02:51:32 +01:00
Fixed integrate function test
This commit is contained in:
parent
455db4f0f1
commit
b2a128d4d1
@ -578,11 +578,11 @@ mod tests {
|
|||||||
*binary(
|
*binary(
|
||||||
binary(var("x"), TokenKind::Power, literal(3f64)),
|
binary(var("x"), TokenKind::Power, literal(3f64)),
|
||||||
TokenKind::Star,
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user