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

Comparing jsr166/src/test/loops/DequeBash.java (file contents):
Revision 1.8 by jsr166, Thu Apr 14 23:16:10 2011 UTC vs.
Revision 1.11 by jsr166, Thu Jan 15 18:34:19 2015 UTC

# Line 3 | Line 3
3   * as explained at http://creativecommons.org/publicdomain/zero/1.0/.
4   */
5  
6 import java.util.*;
6   import java.io.*;
7 + import java.util.*;
8  
9   /**
10   * Interface-based Deque tester.  This test currently makes three
# Line 22 | Line 22 | public class DequeBash {
22      static int nextHead = -1;
23      static int size() { return nextTail - nextHead - 1; }
24  
25
25      static int random(int bound) {
26          int x = seed;
27          int t = (x % 127773) * 16807 - (x / 127773) * 2836;
# Line 37 | Line 36 | public class DequeBash {
36          return (t & 0x7fffffff);
37      }
38  
39 <    public static void main(String args[]) throws Exception {
39 >    public static void main(String[] args) throws Exception {
40          Class<?> cls = Class.forName(args[0]);
41          int n = 1000000;
42  
# Line 154 | Line 153 | public class DequeBash {
153                                  deque.getLast() + " expecting " + (nextTail - 1));
154      }
155  
157
156      static void randomOp(Deque<Integer> deque) throws Exception {
157  
158          // Perform a random operation
# Line 231 | Line 229 | public class DequeBash {
229          }
230      }
231  
234
232      private static void testEqual(Deque<Integer> d1, Deque<Integer> d2)
233          throws Exception
234      {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines