16 |
|
} |
17 |
|
|
18 |
|
/** |
19 |
< |
* Create a map from Integers 1-5 to Strings "A"-"E". |
19 |
> |
* Returns a new map from Integers 1-5 to Strings "A"-"E". |
20 |
|
*/ |
21 |
|
private static TreeMap map5() { |
22 |
|
TreeMap map = new TreeMap(); |
41 |
|
} |
42 |
|
|
43 |
|
/** |
44 |
< |
* |
44 |
> |
* copy constructor creates map equal to source map |
45 |
|
*/ |
46 |
|
public void testConstructFromSorted() { |
47 |
|
TreeMap map = map5(); |
1018 |
|
if (bsContainsI) |
1019 |
|
size++; |
1020 |
|
} |
1021 |
< |
assertEquals(map.size(), size); |
1021 |
> |
assertEquals(size, map.size()); |
1022 |
|
|
1023 |
|
// Test contents using contains keySet iterator |
1024 |
|
int size2 = 0; |