From c495725f48d0a5fe266eb180e39f76bfde176549 Mon Sep 17 00:00:00 2001 From: Weird Constructor Date: Wed, 27 Jul 2022 18:48:50 +0200 Subject: [PATCH] add a comment --- tests/node_scope.rs | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/tests/node_scope.rs b/tests/node_scope.rs index 598c76b..0a51cd6 100644 --- a/tests/node_scope.rs +++ b/tests/node_scope.rs @@ -138,7 +138,6 @@ fn check_node_scope_sine_2hz() { assert_float_eq!(min, -1.0); } - #[test] fn check_node_scope_sine_oversampled() { let (node_conf, mut node_exec) = new_node_engine(); @@ -164,18 +163,10 @@ fn check_node_scope_sine_oversampled() { assert_decimated_feq!( maxv[0..25], 5, + // We expect multiple copies of the same sample at the + // time resolution of 1 millisecond. vec![ - 0.4506, - 0.4506, - 0.4506, - 0.3938, - 0.3938, - 0.3354, - 0.3354, - 0.2150, - 0.2150, - 0.1534, - 0.1534, + 0.4506, 0.4506, 0.4506, 0.3938, 0.3938, 0.3354, 0.3354, 0.2150, 0.2150, 0.1534, 0.1534, 0.1534, ] );