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.12 by jsr166, Tue Sep 24 18:41:32 2013 UTC vs.
Revision 1.15 by jsr166, Wed Dec 31 16:44:02 2014 UTC

# Line 7 | Line 7 | import junit.framework.*;
7   import java.util.*;
8   import java.util.SplittableRandom;
9   import java.util.concurrent.atomic.AtomicInteger;
10 import java.util.concurrent.atomic.AtomicLong;
10   import java.util.concurrent.atomic.LongAdder;
11  
12   public class SplittableRandomTest extends JSR166TestCase {
# Line 89 | Line 88 | public class SplittableRandomTest extend
88       * same values for nextLong.
89       */
90      public void testSeedConstructor() {
91 <        for (long seed = 2; seed < MAX_LONG_BOUND; seed += 15485863)  {
91 >        for (long seed = 2; seed < MAX_LONG_BOUND; seed += 15485863) {
92              SplittableRandom sr1 = new SplittableRandom(seed);
93              SplittableRandom sr2 = new SplittableRandom(seed);
94              for (int i = 0; i < REPS; ++i)
# Line 130 | Line 129 | public class SplittableRandomTest extend
129      /**
130       * nextInt(non-positive) throws IllegalArgumentException
131       */
132 <    public void testNextIntNonPositive() {
132 >    public void testNextIntBoundNonPositive() {
133          SplittableRandom sr = new SplittableRandom();
134          Runnable[] throwingActions = {
135              () -> sr.nextInt(-17),
# Line 199 | Line 198 | public class SplittableRandomTest extend
198      /**
199       * nextLong(non-positive) throws IllegalArgumentException
200       */
201 <    public void testNextLongNonPositive() {
201 >    public void testNextLongBoundNonPositive() {
202          SplittableRandom sr = new SplittableRandom();
203          Runnable[] throwingActions = {
204              () -> sr.nextLong(-17L),
# Line 267 | Line 266 | public class SplittableRandomTest extend
266      /**
267       * nextDouble(non-positive) throws IllegalArgumentException
268       */
269 <    public void testNextDoubleNonPositive() {
269 >    public void testNextDoubleBoundNonPositive() {
270          SplittableRandom sr = new SplittableRandom();
271          Runnable[] throwingActions = {
272              () -> sr.nextDouble(-17.0d),

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines