JUnit tests for collections -
i've implemented radix trie (aka patricia trie) in java, , thoroughly test it. implements map, sortedmap , navigablemap interfaces, add pretty large number of methods check. =/
i figure people wrote library classes hashmap , treemap must have had suite of junit tests (or similar) ensure behave correctly. know of way source code of these tests? i'd love put code through same paces.
in google collections library, there basic test harnesses thoroughly test contracts of various structures, including maps.
here link gcode page: http://code.google.com/p/google-collections/
Comments
Post a Comment