summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorTobias Thierer <tobiast@google.com>2017-02-03 19:38:38 +0000
committerTobias Thierer <tobiast@google.com>2017-02-07 18:05:05 +0000
commit5665b19f6012807c7765aa860baa6b01bbcd1c67 (patch)
tree68bae8bd865b2081740daa66e021f000bb4519b9 /annotations/generate_annotated_java_files.py
parentc21ef14988d9f34bd1b477b70324c7562b75f7b4 (diff)
Improve TreeMapTest
The test was constructing lists of expected keys/values/entries on top of TreeMap's collection view iterators. These tests might have missed bugs where the Iterator order was consistent but wrong. This CL changes the test to explicitly specify the expected order of elements. In addition, the order of put() commands populating TreeMap instances for testing matched the expected iteration order; this would have missed bugs where TreeMap's iteration order was based on insertion rather than Comparator order. This CL changes the order of the put() calls to cover this behavior aspect. SpliteratorTester's method signatures were also relaxed to not rely on particular List implementations for expected values. Test: TreeMapTest Change-Id: Ia649c81cc73d6e66165397f97188ab21ac0f3933
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions