debugging output in the unit test

This commit is contained in:
Vincent Batts 2012-11-02 11:12:01 -04:00
parent c9081b41b5
commit 37a33c5545

View file

@ -67,17 +67,26 @@ public class TestPathTree {
pt1 = new PathTree(bytes); pt1 = new PathTree(bytes);
contents1 = pt1.toList(); contents1 = pt1.toList();
System.out.println(contents0.size());
System.out.println(contents1.size());
Collections.sort(contents0); Collections.sort(contents0);
Collections.sort(contents1); Collections.sort(contents1);
System.out.println("Originals, not in New");
for (String thisS : contents0) { for (String thisS : contents0) {
if (! contents1.contains(thisS)) { if (! contents1.contains(thisS)) {
System.out.println(thisS); System.out.println(thisS);
} }
} }
//System.out.println(contents0.size()); System.out.println("New, not in Original");
//System.out.println(contents1.size()); for (String thisS : contents1) {
if (! contents0.contains(thisS)) {
System.out.println(thisS);
}
}
assertEquals(contents0.size(), contents1.size()); assertEquals(contents0.size(), contents1.size());
} }