Updated gitignore, first draft report, makefile
[co1314.git] / PetTest.java
index cabef3e..f55a815 100755 (executable)
@@ -89,7 +89,7 @@ public class PetTest {
                checkConformance(n, m, result);
        }
        
-       @Test(timeout = 2000)
+       @Test(timeout = 10000)
        public void testExample() {
                int n = 5, m = 4;
                int[][] compatibility = {
@@ -105,19 +105,19 @@ public class PetTest {
                Assert.assertEquals("Does not give a correct answer", 4, computeCompatibility(compatibility, result));
        }
        
-       @Test(timeout = 2000)
+       @Test(timeout = 10000)
        public void testGeneratedSmall() {
                performGeneratedTest(8, 10);
                performGeneratedTest(10, 8);
        }
        
-       @Test(timeout = 2000)
+       @Test(timeout = 10000)
        public void testGeneratedMedium() {
                performGeneratedTest(23, 20);
                performGeneratedTest(20, 23);
        }
        
-       @Test(timeout = 5000)
+       @Test(timeout = 10000)
        public void testGeneratedLarge() {
                performGeneratedTest(121, 130);
                performGeneratedTest(130, 121);
@@ -128,7 +128,7 @@ public class PetTest {
         * your solution is not incorrect if it takes longer,
         * or if it is not capable to finish in a reasonable amount of time.
         */
-       @Test(timeout = 5000) 
+       @Test(timeout = 10000) 
        public void testGeneratedTerrible() {
                performGeneratedTest(2910, 3102);
                performGeneratedTest(3102, 2910);