Skip to content
Permalink
Browse files
Fix broken tests.
  • Loading branch information
garydgregory committed May 5, 2022
1 parent 1362359 commit ee732137c6c36307bc7cc91c77c1b3b77ae7ce2f
Showing 1 changed file with 3 additions and 2 deletions.
@@ -21,6 +21,7 @@
import org.junit.jupiter.api.Test;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThrows;

public class ParametersTest {

@@ -111,12 +112,12 @@ public void allParametersUsuallyTakeTheirSpecifiedValues() {

@Test
public void windowSizeMustNotBeSmallerThanMinBackReferenceLength() {
newParameters(128, 200, 300, 400, 500);
assertThrows(IllegalArgumentException.class, () -> newParameters(128, 200, 300, 400, 500));
}

@Test
public void windowSizeMustBeAPowerOfTwo() {
newParameters(100, 200, 300, 400, 500);
assertThrows(IllegalArgumentException.class, () -> newParameters(100, 200, 300, 400, 500));
}

private static Parameters newParameters(final int windowSize) {

0 comments on commit ee73213

Please sign in to comment.