ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/jtreg/util/Collections/EmptyNavigableMap.java
(Generate patch)

Comparing jsr166/src/test/jtreg/util/Collections/EmptyNavigableMap.java (file contents):
Revision 1.1 by jsr166, Wed Sep 9 22:33:33 2015 UTC vs.
Revision 1.3 by jsr166, Mon Feb 8 22:13:07 2016 UTC

# Line 265 | Line 265 | public class EmptyNavigableMap {
265                      navigableMap.subMap(last, true, first, false);
266                  },
267                  IllegalArgumentException.class, description
268 <                + ": Must throw IllegalArgumentException when fromElement is not less then then toElement.");
268 >                + ": Must throw IllegalArgumentException when fromElement is not less than toElement.");
269  
270          navigableMap.subMap(first, true, last, false);
271      }
# Line 282 | Line 282 | public class EmptyNavigableMap {
282  
283          // slightly smaller
284          NavigableMap ns = subMap.subMap(first, false, last, false);
285 <        // slight exapansion
285 >        // slight expansion
286          assertThrows(() -> {
287              ns.subMap(first, true, last, true);
288          },
# Line 303 | Line 303 | public class EmptyNavigableMap {
303          // slightly smaller
304          NavigableMap ns = subMap.headMap(BigInteger.ONE, false);
305  
306 <        // slight exapansion
306 >        // slight expansion
307          assertThrows(() -> {
308              ns.headMap(BigInteger.ONE, true);
309          },
# Line 324 | Line 324 | public class EmptyNavigableMap {
324          // slightly smaller
325          NavigableMap ns = subMap.tailMap(BigInteger.ONE, false);
326  
327 <        // slight exapansion
327 >        // slight expansion
328          assertThrows(() -> {
329              ns.tailMap(BigInteger.ONE, true);
330          },

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines