File tree 1 file changed +4
-11
lines changed
src/test/java/com/thealgorithms/audiofilters 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change 1
1
package com .thealgorithms .audiofilters ;
2
2
3
- import static org .junit .jupiter .api .Assertions .*;
3
+ import static org .junit .jupiter .api .Assertions .assertEquals ;
4
+ import static org .junit .jupiter .api .Assertions .assertNotNull ;
5
+ import static org .junit .jupiter .api .Assertions .assertThrows ;
6
+ import static org .junit .jupiter .api .Assertions .assertTrue ;
4
7
5
8
import org .junit .jupiter .api .Test ;
6
9
@@ -19,16 +22,6 @@ void testConstructorInvalidOrder() {
19
22
assertThrows (IllegalArgumentException .class , () -> { new IIRFilter (0 ); }, "Order must be greater than zero" );
20
23
}
21
24
22
- @ Test
23
- void testSetCoeffsValid () {
24
- IIRFilter filter = new IIRFilter (2 );
25
-
26
- // Valid coefficients with correct length
27
- double [] aCoeffs = {1.0 , 0.5 };
28
- double [] bCoeffs = {1.0 , 0.5 };
29
- assertDoesNotThrow (() -> filter .setCoeffs (aCoeffs , bCoeffs ), "Coefficients should be set without exceptions" );
30
- }
31
-
32
25
@ Test
33
26
void testSetCoeffsInvalidLengthA () {
34
27
IIRFilter filter = new IIRFilter (2 );
You can’t perform that action at this time.
0 commit comments