summaryrefslogtreecommitdiff
path: root/test/de/lmu/ifi/dbs/elki/utilities/datastructures/TestHeap.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/de/lmu/ifi/dbs/elki/utilities/datastructures/TestHeap.java')
-rw-r--r--test/de/lmu/ifi/dbs/elki/utilities/datastructures/TestHeap.java27
1 files changed, 25 insertions, 2 deletions
diff --git a/test/de/lmu/ifi/dbs/elki/utilities/datastructures/TestHeap.java b/test/de/lmu/ifi/dbs/elki/utilities/datastructures/TestHeap.java
index 44c84f83..fcdc28d2 100644
--- a/test/de/lmu/ifi/dbs/elki/utilities/datastructures/TestHeap.java
+++ b/test/de/lmu/ifi/dbs/elki/utilities/datastructures/TestHeap.java
@@ -1,5 +1,28 @@
package de.lmu.ifi.dbs.elki.utilities.datastructures;
+/*
+ This file is part of ELKI:
+ Environment for Developing KDD-Applications Supported by Index-Structures
+
+ Copyright (C) 2011
+ Ludwig-Maximilians-Universität München
+ Lehr- und Forschungseinheit für Datenbanksysteme
+ ELKI Development Team
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
import static org.junit.Assert.assertEquals;
import java.util.Collections;
@@ -31,11 +54,11 @@ public class TestHeap {
}
for(int i = 0; i < asc.length; i++) {
final Integer gota = hasc.poll();
- assertEquals("Objects sorted incorrectly at ascending position "+i, asc[i], gota);
+ assertEquals("Objects sorted incorrectly at ascending position " + i, asc[i], gota);
}
for(int i = 0; i < desc.length; i++) {
final Integer gotd = hdesc.poll();
- assertEquals("Objects sorted incorrectly at descending position "+i, desc[i], gotd);
+ assertEquals("Objects sorted incorrectly at descending position " + i, desc[i], gotd);
}
}
}