# | 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 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 | { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |