Disabled external gits
This commit is contained in:
7
Alpano/tests/ch/epfl/test/ObjectTest.java
Normal file
7
Alpano/tests/ch/epfl/test/ObjectTest.java
Normal file
@@ -0,0 +1,7 @@
|
||||
package ch.epfl.test;
|
||||
|
||||
public interface ObjectTest {
|
||||
public static boolean hashCodeIsCompatibleWithEquals(Object o1, Object o2) {
|
||||
return ! o1.equals(o2) || o1.hashCode() == o2.hashCode();
|
||||
}
|
||||
}
|
14
Alpano/tests/ch/epfl/test/TestRandomizer.java
Normal file
14
Alpano/tests/ch/epfl/test/TestRandomizer.java
Normal file
@@ -0,0 +1,14 @@
|
||||
package ch.epfl.test;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public interface TestRandomizer {
|
||||
// Fix random seed to guarantee reproducibility.
|
||||
public final static long SEED = 2017;
|
||||
|
||||
public final static int RANDOM_ITERATIONS = 500;
|
||||
|
||||
public static Random newRandom() {
|
||||
return new Random(SEED);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user