package com.jwetherell.algorithms.data_structures.test.common;
import java.util.Collection;
public class JavaCollectionTest {
public static <T extends Comparable<T>> boolean testCollection(Collection<T> collection, Class<T> type, String name,
<BUG>Integer[] unsorted, Integer[] sorted, Integer invalid) {
</BUG>
if (!collection.isEmpty()) {
System.err.println(name+" initial isEmpty() failed.");
Utils.handleError(collection);

package com.jwetherell.algorithms.data_structures.test.common;
import java.util.Collection;
public class JavaCollectionTest {
public static <T extends Comparable<T>> boolean testCollection(Collection<T> collection, Class<T> type, String name,
Integer[] unsorted, Integer[] sorted, Integer _invalid) {
if (!collection.isEmpty()) {
System.err.println(name+" initial isEmpty() failed.");
Utils.handleError(collection);
