Skip to content

Commit 671411c

Browse files
author
phishman3579
committed
Minor updates to the testing code
git-svn-id: https://java-algorithms-implementation.googlecode.com/svn/trunk@406 032fbc0f-8cab-eb90-e552-f08422b9a96a
1 parent 2537509 commit 671411c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/com/jwetherell/algorithms/DataStructures.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2347,7 +2347,7 @@ private static <T extends Comparable<T>> boolean testJavaCollection(Collection<T
23472347
return false;
23482348
}
23492349
}
2350-
/*
2350+
23512351
unsortedCount++;
23522352
{ // UNSORTED: Add in reverse (from index length-1 to zero) order and then remove in order (from index zero to length)
23532353
beforeMemory = 0L;
@@ -2431,7 +2431,7 @@ private static <T extends Comparable<T>> boolean testJavaCollection(Collection<T
24312431
return false;
24322432
}
24332433
}
2434-
*/
2434+
24352435
long sortedCount = 0;
24362436

24372437
long addSortedTime = 0L;
@@ -2532,7 +2532,7 @@ private static <T extends Comparable<T>> boolean testJavaCollection(Collection<T
25322532
return false;
25332533
}
25342534
}
2535-
/*
2535+
25362536
sortedCount++;
25372537
{ // SORTED: Add in order (from index zero to length) and then remove in reverse (from index length-1 to zero) order
25382538
beforeMemory = 0L;
@@ -2622,7 +2622,7 @@ private static <T extends Comparable<T>> boolean testJavaCollection(Collection<T
26222622
return false;
26232623
}
26242624
}
2625-
*/
2625+
26262626
if (testResults[testIndex] == null) testResults[testIndex] = new long[6];
26272627
testResults[testIndex][0] += addTime / unsortedCount;
26282628
testResults[testIndex][1] += removeTime / unsortedCount;

0 commit comments

Comments
 (0)