Basic but fairly comprehensive set of tests for `IdentityHashMap`. The patch in 
the bug report that breaks `IdentityHashMap` now causes several cases in this 
new test to fail. There's more that could be done, but the new tests cover most 
of the core functions of `IdentityHashMap`. Unfortunately it seems difficult to 
merge this with the existing, comprehensive Collections tests (e.g., 
because those tests implicity rely on `equals()`-based contract instead of the 
special-purpose `==`-based contract used by `IdentityHashMap`.


Commit messages:
 - Refactor contents checking to use checkElements() and checkEntries().
 - Rename some tests.
 - Rename isIdenticalEntry to hasIdenticalKeyValue.
 - Finish writing all pending tests except remove(k,v) and replace(k,v1,v2).
 - Some cleanup and more tests.
 - Initial cut at IdentityHashMap tests.

  Stats: 546 lines in 1 file changed: 546 ins; 0 del; 0 mod
  Fetch: git fetch pull/8354/head:pull/8354


Reply via email to