Anonymous
Not logged in
Log in
Request account
CMSC 420
Search
Changes
From CMSC 420
Namespaces
Page
Discussion
More
More
Languages
Page actions
Read
View source
History
← 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
Navigation
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Wiki tools
Wiki tools
Special pages
Page tools
Page tools
Userpage tools
More
Printable version