1 |
|
/* |
2 |
|
* Written by Doug Lea with assistance from members of JCP JSR-166 |
3 |
|
* Expert Group and released to the public domain, as explained at |
4 |
< |
* http://creativecommons.org/licenses/publicdomain |
4 |
> |
* http://creativecommons.org/publicdomain/zero/1.0/ |
5 |
|
*/ |
6 |
|
|
7 |
|
import junit.framework.*; |
980 |
|
* Submaps of submaps subdivide correctly |
981 |
|
*/ |
982 |
|
public void testRecursiveSubMaps() throws Exception { |
983 |
< |
int mapSize = 1000; |
983 |
> |
int mapSize = expensiveTests ? 1000 : 100; |
984 |
|
Class cl = ConcurrentSkipListMap.class; |
985 |
|
NavigableMap<Integer, Integer> map = newMap(cl); |
986 |
|
bs = new BitSet(mapSize); |
1161 |
|
*/ |
1162 |
|
void check(NavigableMap<Integer, Integer> map, |
1163 |
|
final int min, final int max, final boolean ascending) { |
1164 |
< |
class ReferenceSet { |
1164 |
> |
class ReferenceSet { |
1165 |
|
int lower(int key) { |
1166 |
|
return ascending ? lowerAscending(key) : higherAscending(key); |
1167 |
|
} |