diff --git a/src/nodes/tests.rs b/src/nodes/tests.rs index 4c3caa6..59995fe 100644 --- a/src/nodes/tests.rs +++ b/src/nodes/tests.rs @@ -4,6 +4,14 @@ use rug::Float; use crate::nodes::{Function, Node, Nodes, Operator, PREC}; +#[test] +fn implicit_mult() { + assert_eq!( + Nodes::from_str("10 sin(10)").unwrap().evaluate().to_f64(), + -5.440211108893698 + ); +} + #[test] fn constants() { assert_eq!(