File tree 1 file changed +9
-4
lines changed
src/com/jwetherell/algorithms
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 62
62
@ SuppressWarnings ("unchecked" )
63
63
public class DataStructures {
64
64
65
- private static final int NUMBER_OF_TESTS = 1 ;
65
+ private static final int NUMBER_OF_TESTS = 10 ;
66
66
private static final Random RANDOM = new Random ();
67
- private static final int ARRAY_SIZE = 100 ;
67
+ private static final int ARRAY_SIZE = 1000 ;
68
68
private static final int RANDOM_SIZE = 1000 * ARRAY_SIZE ;
69
69
private static final Integer INVALID = RANDOM_SIZE + 10 ;
70
70
private static final DecimalFormat FORMAT = new DecimalFormat ("0.##" );
@@ -88,9 +88,14 @@ public class DataStructures {
88
88
89
89
public static void main (String [] args ) {
90
90
System .out .println ("Starting tests." );
91
- boolean passed = true ;
91
+ boolean passed = false ;
92
92
for (int i = 0 ; i < NUMBER_OF_TESTS ; i ++) {
93
- passed = runTests ();
93
+ try {
94
+ passed = runTests ();
95
+ } catch (NullPointerException e ) {
96
+ System .err .println (string );
97
+ throw e ;
98
+ }
94
99
if (!passed ) break ;
95
100
}
96
101
if (passed ) System .out .println ("Tests finished. All passed." );
You can’t perform that action at this time.
0 commit comments