Skip to content

Commit

Permalink
Define REPS parameter locally on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gstamatelat committed Jul 2, 2018
1 parent cb99bec commit 3b1c17f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/test/java/gr/james/sampling/RandomSamplingTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
public class RandomSamplingTest {

private static final Random RANDOM = new Random();

private static final int SAMPLE = 10;
private static final int REPS = 1000000;

private final Supplier<RandomSampling<Integer>> impl;

Expand All @@ -44,6 +42,7 @@ public static Collection<Supplier<RandomSampling<Integer>>> implementations() {
@Test
public void correctness20() {
final int STREAM = 20;
final int REPS = 1000000;

final int[] d = new int[STREAM];

Expand Down Expand Up @@ -72,6 +71,7 @@ public void correctness20() {
@Test
public void stream20() {
final int STREAM = 20;
final int REPS = 1000000;

final int[] d = new int[STREAM];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
public class WeightedRandomSamplingTest {

private static final Random RANDOM = new Random();

private static final int SAMPLE = 10;
private static final int REPS = 1000000;

private final Supplier<WeightedRandomSampling<Integer>> impl;

Expand All @@ -41,6 +39,7 @@ public static Collection<Supplier<WeightedRandomSampling<Integer>>> implementati
@Test
public void correctness20() {
final int STREAM = 20;
final int REPS = 1000000;

final int[] d = new int[STREAM];

Expand All @@ -67,6 +66,7 @@ public void correctness20() {
@Test
public void stream20() {
final int STREAM = 20;
final int REPS = 1000000;

final int[] d = new int[STREAM];

Expand Down

0 comments on commit 3b1c17f

Please sign in to comment.