Skip to content

Commit dcb85f8

Browse files
authored
Update EMAFilterTest.java
1 parent faff766 commit dcb85f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ public void testAlphaBounds() {
3636

3737
// Minimal smoothing (alpha close to 0)
3838
double[] resultMin = emaFilterMin.apply(audioSignal);
39-
39+
40+
assertArrayEquals(audioSignal, resultMax, 1e-5);
41+
4042
// Maximum smoothing (alpha = 1, output should match input)
4143
double[] resultMax = emaFilterMax.apply(audioSignal);
4244

0 commit comments

Comments
 (0)