Open main menu
Home
Random
Log in
Settings
About CMSC 420
Disclaimers
CMSC 420
Search
Changes
← Older edit
Jesse HexTrie Junit Test
(view source)
Revision as of 03:01, 16 May 2012
10 bytes added
,
03:01, 16 May 2012
Removed methods that are not in the canonical
Line 160:
Line 160:
//System.out.println("deleting: "+Integer.toString(key));
//System.out.println("deleting: "+Integer.toString(key));
assertNotNull(ht.remove(new Integer(key)));
assertNotNull(ht.remove(new Integer(key)));
−
ht.printHexTrie();
+
//
ht.printHexTrie();
assertUniqueKeys(ht);
assertUniqueKeys(ht);
Document outputDoc = ht.getXmlDocumentSnapshot();
Document outputDoc = ht.getXmlDocumentSnapshot();
Line 181:
Line 181:
if (leafOrder == -1)
if (leafOrder == -1)
System.out.println("deleting: "+Integer.toString(key));
System.out.println("deleting: "+Integer.toString(key));
−
if (key == -1 && leafOrder == -1)
+
//
if (key == -1 && leafOrder == -1)
−
ht.printHexTrie();
+
//
ht.printHexTrie();
assertNotNull(ht.remove(new Integer(key)));
assertNotNull(ht.remove(new Integer(key)));
assertUniqueKeys(ht);
assertUniqueKeys(ht);
Line 216:
Line 216:
if (leafOrder == -1)
if (leafOrder == -1)
System.out.println("deleting: "+Integer.toString(key));
System.out.println("deleting: "+Integer.toString(key));
−
if (key == -1 && leafOrder == -1)
+
//
if (key == -1 && leafOrder == -1)
−
ht.printHexTrie();
+
//
ht.printHexTrie();
assertNotNull(ht.remove(new Integer(key)));
assertNotNull(ht.remove(new Integer(key)));
assertUniqueKeys(ht);
assertUniqueKeys(ht);
Jesse
9
edits