Skip to content

Commit 5c7547f

Browse files
committed
Fix
1 parent 29750df commit 5c7547f

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

src/test/java/com/thealgorithms/audiofilters/IIRFilterTest.java

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
package com.thealgorithms.audiofilters;
22

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;
47

58
import org.junit.jupiter.api.Test;
69

@@ -19,16 +22,6 @@ void testConstructorInvalidOrder() {
1922
assertThrows(IllegalArgumentException.class, () -> { new IIRFilter(0); }, "Order must be greater than zero");
2023
}
2124

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-
3225
@Test
3326
void testSetCoeffsInvalidLengthA() {
3427
IIRFilter filter = new IIRFilter(2);

0 commit comments

Comments
 (0)