tests: implicit_mult

This commit is contained in:
electria 2026-07-16 00:30:53 -07:00
commit 8d26022403
Signed by: electria
SSH key fingerprint: SHA256:8LlB3ucPbBHqozqkhsNbaV5oG3SlzzqUj8FZDL6IPQs

View file

@ -4,6 +4,14 @@ use rug::Float;
use crate::nodes::{Function, Node, Nodes, Operator, PREC}; 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] #[test]
fn constants() { fn constants() {
assert_eq!( assert_eq!(