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 |
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; |
153 |
|
deque.getLast() + " expecting " + (nextTail - 1)); |
154 |
|
} |
155 |
|
|
157 |
– |
|
156 |
|
static void randomOp(Deque<Integer> deque) throws Exception { |
157 |
|
|
158 |
|
// Perform a random operation |
229 |
|
} |
230 |
|
} |
231 |
|
|
234 |
– |
|
232 |
|
private static void testEqual(Deque<Integer> d1, Deque<Integer> d2) |
233 |
|
throws Exception |
234 |
|
{ |