File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ const MAX_IIR_COEFFS_LEN: usize = 20;
25
25
fn assert_valid_feedforward_coefs ( coefs : & Vec < f64 > ) {
26
26
assert ! (
27
27
!coefs. is_empty( ) && coefs. len( ) <= MAX_IIR_COEFFS_LEN ,
28
- "NotSupportedError - IIR Filter feedforward coefficients should have length >= 0 and <= 20"
28
+ "NotSupportedError - IIR Filter feedforward coefficients should have length >= 0 and <= {}" ,
29
+ MAX_IIR_COEFFS_LEN ,
29
30
) ;
30
31
31
32
assert ! (
@@ -48,7 +49,8 @@ fn assert_valid_feedforward_coefs(coefs: &Vec<f64>) {
48
49
fn assert_valid_feedback_coefs ( coefs : & Vec < f64 > ) {
49
50
assert ! (
50
51
!coefs. is_empty( ) && coefs. len( ) <= MAX_IIR_COEFFS_LEN ,
51
- "NotSupportedError - IIR Filter feedback coefficients should have length >= 0 and <= 20"
52
+ "NotSupportedError - IIR Filter feedback coefficients should have length >= 0 and <= {}" ,
53
+ MAX_IIR_COEFFS_LEN ,
52
54
) ;
53
55
54
56
assert_ne ! (
You can’t perform that action at this time.
0 commit comments