ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/SplittableRandomTest.java
(Generate patch)

Comparing jsr166/src/test/tck/SplittableRandomTest.java (file contents):
Revision 1.4 by jsr166, Sun Jul 14 16:55:01 2013 UTC vs.
Revision 1.5 by jsr166, Mon Jul 15 01:07:43 2013 UTC

# Line 288 | Line 288 | public class SplittableRandomTest extend
288              shouldThrow();
289          } catch (IllegalArgumentException success) {}
290          try {
291 +            java.util.stream.IntStream x = r.ints(-1L, 2, 3);
292 +            shouldThrow();
293 +        } catch (IllegalArgumentException success) {}
294 +        try {
295              java.util.stream.LongStream x = r.longs(-1L);
296              shouldThrow();
297          } catch (IllegalArgumentException success) {}
298          try {
299 +            java.util.stream.LongStream x = r.longs(-1L, -1L, 1L);
300 +            shouldThrow();
301 +        } catch (IllegalArgumentException success) {}
302 +        try {
303              java.util.stream.DoubleStream x = r.doubles(-1L);
304              shouldThrow();
305          } catch (IllegalArgumentException success) {}
306 +        try {
307 +            java.util.stream.DoubleStream x = r.doubles(-1L, .5, .6);
308 +            shouldThrow();
309 +        } catch (IllegalArgumentException success) {}
310      }
311  
312      /**
# Line 308 | Line 320 | public class SplittableRandomTest extend
320              shouldThrow();
321          } catch (IllegalArgumentException success) {}
322          try {
323 <            java.util.stream.LongStream x = r.longs(1, -2);
323 >            java.util.stream.IntStream x = r.ints(10, 42, 42);
324 >            shouldThrow();
325 >        } catch (IllegalArgumentException success) {}
326 >        try {
327 >            java.util.stream.LongStream x = r.longs(-1L, -1L);
328 >            shouldThrow();
329 >        } catch (IllegalArgumentException success) {}
330 >        try {
331 >            java.util.stream.LongStream x = r.longs(10, 1L, -2L);
332 >            shouldThrow();
333 >        } catch (IllegalArgumentException success) {}
334 >        try {
335 >            java.util.stream.DoubleStream x = r.doubles(0.0, 0.0);
336              shouldThrow();
337          } catch (IllegalArgumentException success) {}
338          try {
339 <            java.util.stream.DoubleStream x = r.doubles(0, 0);
339 >            java.util.stream.DoubleStream x = r.doubles(10, .5, .4);
340              shouldThrow();
341          } catch (IllegalArgumentException success) {}
342      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines