This is the mail archive of the
mauve-patches@sourceware.org
mailing list for the Mauve project.
Patch: FYI: update IdentityHashMap test
- From: Tom Tromey <tromey at redhat dot com>
- To: Mauve Patch List <mauve-patches at sources dot redhat dot com>
- Date: 28 Sep 2006 19:11:36 -0600
- Subject: Patch: FYI: update IdentityHashMap test
- Reply-to: tromey at redhat dot com
This updates the IdentityHashMap test to check the result of remove().
Tom
2006-09-28 Tom Tromey <tromey@redhat.com>
* gnu/testlet/java/util/IdentityHashMap/simple.java (test): Check
results of remove().
Index: gnu/testlet/java/util/IdentityHashMap/simple.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/java/util/IdentityHashMap/simple.java,v
retrieving revision 1.2
diff -u -r1.2 simple.java
--- gnu/testlet/java/util/IdentityHashMap/simple.java 18 Feb 2002 16:22:25 -0000 1.2
+++ gnu/testlet/java/util/IdentityHashMap/simple.java 29 Sep 2006 01:15:28 -0000
@@ -54,7 +54,11 @@
// Now remove some elements and recheck.
harness.checkPoint ("remove");
for (int i = 0; i < 1000; i += 2)
- map.remove (is[i]);
+ {
+ Object v = map.remove (is[i]);
+ harness.check(v, vs[i]);
+ }
+ harness.checkPoint("post remove");
for (int i = 1; i < 1000; i += 2)
{
Object k = map.get (is[i]);