From 6785540622b8016f29595fc17759bb0b98398aa4 Mon Sep 17 00:00:00 2001 From: Timofon Date: Thu, 25 Apr 2024 15:11:56 +0300 Subject: [PATCH] roms test debug --- src/features/roms.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/roms.rs b/src/features/roms.rs index edd3488..b7b21f3 100644 --- a/src/features/roms.rs +++ b/src/features/roms.rs @@ -99,8 +99,8 @@ mod tests { let y = vec![1.0_f32, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]; let z = vec![0_f32, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]; let mut ts = TimeSeries::new(&x, &y, &z); - let actual: f32 = eval.eval(&mut ts).unwrap()[0]; - let desired: f32 = 0.0; + let actual = eval.eval(&mut ts).unwrap(); + let desired = [0.0_f32]; all_close(&actual, &desired, 1e-10); }