Lines Matching refs:assertEqual

48   public static void assertEqual(long expected, long actual) {  in assertEqual()  method in Main
54 private static void assertEqual(boolean expected, boolean actual) { in assertEqual() method in Main
65 assertEqual(0xD202EF8DL, CRC32Byte(0x0)); in TestCRC32Update()
66 assertEqual(0xD202EF8DL, CRC32Byte(0x0100)); in TestCRC32Update()
67 assertEqual(0xD202EF8DL, CRC32Byte(0x010000)); in TestCRC32Update()
68 assertEqual(0xD202EF8DL, CRC32Byte(0x01000000)); in TestCRC32Update()
69 assertEqual(0xD202EF8DL, CRC32Byte(0xff00)); in TestCRC32Update()
70 assertEqual(0xD202EF8DL, CRC32Byte(0xffff00)); in TestCRC32Update()
71 assertEqual(0xD202EF8DL, CRC32Byte(0xffffff00)); in TestCRC32Update()
72 assertEqual(0xD202EF8DL, CRC32Byte(0x1200)); in TestCRC32Update()
73 assertEqual(0xD202EF8DL, CRC32Byte(0x123400)); in TestCRC32Update()
74 assertEqual(0xD202EF8DL, CRC32Byte(0x12345600)); in TestCRC32Update()
75 assertEqual(0xD202EF8DL, CRC32Byte(Integer.MIN_VALUE)); in TestCRC32Update()
79 assertEqual(0xA505DF1BL, CRC32Byte(0x1)); in TestCRC32Update()
80 assertEqual(0xA505DF1BL, CRC32Byte(0x0101)); in TestCRC32Update()
81 assertEqual(0xA505DF1BL, CRC32Byte(0x010001)); in TestCRC32Update()
82 assertEqual(0xA505DF1BL, CRC32Byte(0x01000001)); in TestCRC32Update()
83 assertEqual(0xA505DF1BL, CRC32Byte(0xff01)); in TestCRC32Update()
84 assertEqual(0xA505DF1BL, CRC32Byte(0xffff01)); in TestCRC32Update()
85 assertEqual(0xA505DF1BL, CRC32Byte(0xffffff01)); in TestCRC32Update()
86 assertEqual(0xA505DF1BL, CRC32Byte(0x1201)); in TestCRC32Update()
87 assertEqual(0xA505DF1BL, CRC32Byte(0x123401)); in TestCRC32Update()
88 assertEqual(0xA505DF1BL, CRC32Byte(0x12345601)); in TestCRC32Update()
92 assertEqual(0x42BDF21CL, CRC32Byte(0x0f)); in TestCRC32Update()
93 assertEqual(0x42BDF21CL, CRC32Byte(0x010f)); in TestCRC32Update()
94 assertEqual(0x42BDF21CL, CRC32Byte(0x01000f)); in TestCRC32Update()
95 assertEqual(0x42BDF21CL, CRC32Byte(0x0100000f)); in TestCRC32Update()
96 assertEqual(0x42BDF21CL, CRC32Byte(0xff0f)); in TestCRC32Update()
97 assertEqual(0x42BDF21CL, CRC32Byte(0xffff0f)); in TestCRC32Update()
98 assertEqual(0x42BDF21CL, CRC32Byte(0xffffff0f)); in TestCRC32Update()
99 assertEqual(0x42BDF21CL, CRC32Byte(0x120f)); in TestCRC32Update()
100 assertEqual(0x42BDF21CL, CRC32Byte(0x12340f)); in TestCRC32Update()
101 assertEqual(0x42BDF21CL, CRC32Byte(0x1234560f)); in TestCRC32Update()
105 assertEqual(0xFF000000L, CRC32Byte(0x00ff)); in TestCRC32Update()
106 assertEqual(0xFF000000L, CRC32Byte(0x01ff)); in TestCRC32Update()
107 assertEqual(0xFF000000L, CRC32Byte(0x0100ff)); in TestCRC32Update()
108 assertEqual(0xFF000000L, CRC32Byte(0x010000ff)); in TestCRC32Update()
109 assertEqual(0xFF000000L, CRC32Byte(0x0000ffff)); in TestCRC32Update()
110 assertEqual(0xFF000000L, CRC32Byte(0x00ffffff)); in TestCRC32Update()
111 assertEqual(0xFF000000L, CRC32Byte(0xffffffff)); in TestCRC32Update()
112 assertEqual(0xFF000000L, CRC32Byte(0x12ff)); in TestCRC32Update()
113 assertEqual(0xFF000000L, CRC32Byte(0x1234ff)); in TestCRC32Update()
114 assertEqual(0xFF000000L, CRC32Byte(0x123456ff)); in TestCRC32Update()
115 assertEqual(0xFF000000L, CRC32Byte(Integer.MAX_VALUE)); in TestCRC32Update()
119 assertEqual(0xFF41D912L, CRC32BytesUsingUpdateInt(0, 0, 0)); in TestCRC32Update()
120 assertEqual(0xFF41D912L, in TestCRC32Update()
122 assertEqual(0xFF41D912L, in TestCRC32Update()
124 assertEqual(0xFF41D912L, in TestCRC32Update()
127 assertEqual(0x909FB2F2L, CRC32BytesUsingUpdateInt(1, 1, 1)); in TestCRC32Update()
128 assertEqual(0x909FB2F2L, in TestCRC32Update()
130 assertEqual(0x909FB2F2L, in TestCRC32Update()
132 assertEqual(0x909FB2F2L, in TestCRC32Update()
135 assertEqual(0xE33A9F71L, CRC32BytesUsingUpdateInt(0x0f, 0x0f, 0x0f)); in TestCRC32Update()
136 assertEqual(0xE33A9F71L, in TestCRC32Update()
138 assertEqual(0xE33A9F71L, in TestCRC32Update()
140 assertEqual(0xE33A9F71L, in TestCRC32Update()
143 assertEqual(0xFFFFFF00L, CRC32BytesUsingUpdateInt(0x0ff, 0x0ff, 0x0ff)); in TestCRC32Update()
144 assertEqual(0xFFFFFF00L, in TestCRC32Update()
146 assertEqual(0xFFFFFF00L, in TestCRC32Update()
148 assertEqual(0xFFFFFF00L, in TestCRC32Update()
151 assertEqual(0xB6CC4292L, CRC32BytesUsingUpdateInt(0x01, 0x02)); in TestCRC32Update()
153 assertEqual(0xB2DE047CL, in TestCRC32Update()
226 assertEqual(0L, CRC32ByteArray(new byte[] {})); in TestCRC32UpdateBytes()
227 assertEqual(0L, CRC32ByteArray(new byte[] {}, 0, 0)); in TestCRC32UpdateBytes()
228 assertEqual(0L, CRC32ByteArray(new byte[] {0}, 0, 0)); in TestCRC32UpdateBytes()
229 assertEqual(0L, CRC32ByteArray(new byte[] {0}, 1, 0)); in TestCRC32UpdateBytes()
230 assertEqual(0L, CRC32ByteArray(new byte[] {0, 0}, 1, 0)); in TestCRC32UpdateBytes()
232 assertEqual(true, CRC32ByteArrayThrowsNPE()); in TestCRC32UpdateBytes()
233 assertEqual(true, CRC32ByteArrayThrowsAIOOBE(new byte[] {}, -1, 0)); in TestCRC32UpdateBytes()
234 assertEqual(true, CRC32ByteArrayThrowsAIOOBE(new byte[] {0}, -1, 1)); in TestCRC32UpdateBytes()
235 assertEqual(true, CRC32ByteArrayThrowsAIOOBE(new byte[] {0}, 0, -1)); in TestCRC32UpdateBytes()
236 assertEqual(true, CRC32ByteArrayThrowsAIOOBE(new byte[] {}, 0, -1)); in TestCRC32UpdateBytes()
237 assertEqual(true, CRC32ByteArrayThrowsAIOOBE(new byte[] {}, 1, 0)); in TestCRC32UpdateBytes()
238 assertEqual(true, CRC32ByteArrayThrowsAIOOBE(new byte[] {}, -1, 1)); in TestCRC32UpdateBytes()
239 assertEqual(true, CRC32ByteArrayThrowsAIOOBE(new byte[] {}, 1, -1)); in TestCRC32UpdateBytes()
240 assertEqual(true, CRC32ByteArrayThrowsAIOOBE(new byte[] {}, 0, 1)); in TestCRC32UpdateBytes()
241 assertEqual(true, CRC32ByteArrayThrowsAIOOBE(new byte[] {}, 0, 10)); in TestCRC32UpdateBytes()
242 assertEqual(true, CRC32ByteArrayThrowsAIOOBE(new byte[] {0}, 0, 10)); in TestCRC32UpdateBytes()
243 assertEqual(true, CRC32ByteArrayThrowsAIOOBE(new byte[] {}, 10, 10)); in TestCRC32UpdateBytes()
244 assertEqual(true, CRC32ByteArrayThrowsAIOOBE(new byte[] {0, 0, 0, 0}, 2, 3)); in TestCRC32UpdateBytes()
245 assertEqual(true, CRC32ByteArrayThrowsAIOOBE(new byte[] {0, 0, 0, 0}, 3, 2)); in TestCRC32UpdateBytes()
247 assertEqual(CRC32Byte(0), CRC32ByteArray(new byte[] {0})); in TestCRC32UpdateBytes()
248 assertEqual(CRC32Byte(0), CRC32ByteArray(new byte[] {0}, 0, 1)); in TestCRC32UpdateBytes()
249 assertEqual(CRC32Byte(1), CRC32ByteArray(new byte[] {1})); in TestCRC32UpdateBytes()
250 assertEqual(CRC32Byte(1), CRC32ByteArray(new byte[] {1}, 0, 1)); in TestCRC32UpdateBytes()
251 assertEqual(CRC32Byte(0x0f), CRC32ByteArray(new byte[] {0x0f})); in TestCRC32UpdateBytes()
252 assertEqual(CRC32Byte(0x0f), CRC32ByteArray(new byte[] {0x0f}, 0, 1)); in TestCRC32UpdateBytes()
253 assertEqual(CRC32Byte(0xff), CRC32ByteArray(new byte[] {-1})); in TestCRC32UpdateBytes()
254 assertEqual(CRC32Byte(0xff), CRC32ByteArray(new byte[] {-1}, 0, 1)); in TestCRC32UpdateBytes()
255 assertEqual(CRC32BytesUsingUpdateInt(0, 0, 0), in TestCRC32UpdateBytes()
257 assertEqual(CRC32BytesUsingUpdateInt(0, 0, 0), in TestCRC32UpdateBytes()
259 assertEqual(CRC32BytesUsingUpdateInt(1, 1, 1), in TestCRC32UpdateBytes()
261 assertEqual(CRC32BytesUsingUpdateInt(1, 1, 1), in TestCRC32UpdateBytes()
263 assertEqual(CRC32BytesUsingUpdateInt(0x0f, 0x0f, 0x0f), in TestCRC32UpdateBytes()
265 assertEqual(CRC32BytesUsingUpdateInt(0x0f, 0x0f, 0x0f), in TestCRC32UpdateBytes()
267 assertEqual(CRC32BytesUsingUpdateInt(0xff, 0xff, 0xff), in TestCRC32UpdateBytes()
269 assertEqual(CRC32BytesUsingUpdateInt(0xff, 0xff, 0xff), in TestCRC32UpdateBytes()
271 assertEqual(CRC32BytesUsingUpdateInt(1, 2), in TestCRC32UpdateBytes()
273 assertEqual(CRC32BytesUsingUpdateInt(1, 2), in TestCRC32UpdateBytes()
275 assertEqual( in TestCRC32UpdateBytes()
278 assertEqual( in TestCRC32UpdateBytes()
282 assertEqual(CRC32BytesUsingUpdateInt(0, 0, 0), in TestCRC32UpdateBytes()
284 assertEqual(CRC32BytesUsingUpdateInt(1, 1, 1), in TestCRC32UpdateBytes()
286 assertEqual(CRC32BytesUsingUpdateInt(0x0f, 0x0f, 0x0f), in TestCRC32UpdateBytes()
288 assertEqual(CRC32BytesUsingUpdateInt(0xff, 0xff, 0xff), in TestCRC32UpdateBytes()
290 assertEqual(CRC32BytesUsingUpdateInt(1, 2, 3), in TestCRC32UpdateBytes()
292 assertEqual( in TestCRC32UpdateBytes()
296 assertEqual(CRC32BytesUsingUpdateInt(0, 0, 0), in TestCRC32UpdateBytes()
298 assertEqual(CRC32BytesUsingUpdateInt(1, 1, 1), in TestCRC32UpdateBytes()
300 assertEqual(CRC32BytesUsingUpdateInt(0x0f, 0x0f, 0x0f), in TestCRC32UpdateBytes()
302 assertEqual(CRC32BytesUsingUpdateInt(0xff, 0xff, 0xff), in TestCRC32UpdateBytes()
304 assertEqual(CRC32BytesUsingUpdateInt(1, 2, 3), in TestCRC32UpdateBytes()
306 assertEqual( in TestCRC32UpdateBytes()
314 assertEqual(CRC32BytesUsingUpdateInt(bytes, 0, bytes.length), in TestCRC32UpdateBytes()
316 assertEqual(CRC32BytesUsingUpdateInt(bytes, 0, 8 * 1024), in TestCRC32UpdateBytes()
321 assertEqual(CRC32BytesUsingUpdateInt(bytes, off, len), in TestCRC32UpdateBytes()
328 assertEqual(CRC32BytesUsingUpdateInt(bytes, o, l), in TestCRC32UpdateBytes()
334 assertEqual(CRC32BytesUsingUpdateInt(bytes, 0, len - 1), in TestCRC32UpdateBytes()
336 assertEqual(CRC32BytesUsingUpdateInt(bytes, 0, len), in TestCRC32UpdateBytes()
338 assertEqual(CRC32BytesUsingUpdateInt(bytes, 0, len + 1), in TestCRC32UpdateBytes()
343 assertEqual(CRC32BytesUsingUpdateInt(bytes, off, len), in TestCRC32UpdateBytes()
356 assertEqual(0L, CRC32ByteBuffer(new byte[] {}, 0, 0)); in TestCRC32UpdateByteBuffer()
357 assertEqual(0L, CRC32ByteBuffer(new byte[] {0}, 0, 0)); in TestCRC32UpdateByteBuffer()
358 assertEqual(0L, CRC32ByteBuffer(new byte[] {0}, 1, 0)); in TestCRC32UpdateByteBuffer()
359 assertEqual(0L, CRC32ByteBuffer(new byte[] {0, 0}, 1, 0)); in TestCRC32UpdateByteBuffer()
361 assertEqual(CRC32Byte(0), CRC32ByteBuffer(new byte[] {0}, 0, 1)); in TestCRC32UpdateByteBuffer()
362 assertEqual(CRC32Byte(1), CRC32ByteBuffer(new byte[] {1}, 0, 1)); in TestCRC32UpdateByteBuffer()
363 assertEqual(CRC32Byte(0x0f), CRC32ByteBuffer(new byte[] {0x0f}, 0, 1)); in TestCRC32UpdateByteBuffer()
364 assertEqual(CRC32Byte(0xff), CRC32ByteBuffer(new byte[] {-1}, 0, 1)); in TestCRC32UpdateByteBuffer()
365 assertEqual(CRC32BytesUsingUpdateInt(0, 0, 0), in TestCRC32UpdateByteBuffer()
367 assertEqual(CRC32BytesUsingUpdateInt(1, 1, 1), in TestCRC32UpdateByteBuffer()
369 assertEqual(CRC32BytesUsingUpdateInt(0x0f, 0x0f, 0x0f), in TestCRC32UpdateByteBuffer()
371 assertEqual(CRC32BytesUsingUpdateInt(0xff, 0xff, 0xff), in TestCRC32UpdateByteBuffer()
373 assertEqual(CRC32BytesUsingUpdateInt(1, 2), in TestCRC32UpdateByteBuffer()
375 assertEqual( in TestCRC32UpdateByteBuffer()
383 assertEqual(CRC32BytesUsingUpdateInt(bytes, 0, 8 * 1024), in TestCRC32UpdateByteBuffer()
388 assertEqual(CRC32BytesUsingUpdateInt(bytes, off, len), in TestCRC32UpdateByteBuffer()
395 assertEqual(CRC32BytesUsingUpdateInt(bytes, o, l), in TestCRC32UpdateByteBuffer()
401 assertEqual(CRC32BytesUsingUpdateInt(bytes, 0, len - 1), in TestCRC32UpdateByteBuffer()
403 assertEqual(CRC32BytesUsingUpdateInt(bytes, 0, len), in TestCRC32UpdateByteBuffer()
405 assertEqual(CRC32BytesUsingUpdateInt(bytes, 0, len + 1), in TestCRC32UpdateByteBuffer()
410 assertEqual(CRC32BytesUsingUpdateInt(bytes, off, len), in TestCRC32UpdateByteBuffer()
442 assertEqual(0L, CRC32DirectByteBuffer(new byte[] {}, 0, 0)); in TestCRC32UpdateDirectByteBuffer()
443 assertEqual(0L, CRC32DirectByteBuffer(new byte[] {0}, 0, 0)); in TestCRC32UpdateDirectByteBuffer()
444 assertEqual(0L, CRC32DirectByteBuffer(new byte[] {0}, 1, 0)); in TestCRC32UpdateDirectByteBuffer()
445 assertEqual(0L, CRC32DirectByteBuffer(new byte[] {0, 0}, 1, 0)); in TestCRC32UpdateDirectByteBuffer()
447 assertEqual(CRC32Byte(0), CRC32DirectByteBuffer(new byte[] {0}, 0, 1)); in TestCRC32UpdateDirectByteBuffer()
448 assertEqual(CRC32Byte(1), CRC32DirectByteBuffer(new byte[] {1}, 0, 1)); in TestCRC32UpdateDirectByteBuffer()
449 assertEqual(CRC32Byte(0x0f), CRC32DirectByteBuffer(new byte[] {0x0f}, 0, 1)); in TestCRC32UpdateDirectByteBuffer()
450 assertEqual(CRC32Byte(0xff), CRC32DirectByteBuffer(new byte[] {-1}, 0, 1)); in TestCRC32UpdateDirectByteBuffer()
451 assertEqual(CRC32BytesUsingUpdateInt(0, 0, 0), in TestCRC32UpdateDirectByteBuffer()
453 assertEqual(CRC32BytesUsingUpdateInt(1, 1, 1), in TestCRC32UpdateDirectByteBuffer()
455 assertEqual(CRC32BytesUsingUpdateInt(0x0f, 0x0f, 0x0f), in TestCRC32UpdateDirectByteBuffer()
457 assertEqual(CRC32BytesUsingUpdateInt(0xff, 0xff, 0xff), in TestCRC32UpdateDirectByteBuffer()
459 assertEqual(CRC32BytesUsingUpdateInt(1, 2), in TestCRC32UpdateDirectByteBuffer()
461 assertEqual( in TestCRC32UpdateDirectByteBuffer()
465 assertEqual(CRC32BytesUsingUpdateInt(0, 0, 0), in TestCRC32UpdateDirectByteBuffer()
467 assertEqual(CRC32BytesUsingUpdateInt(1, 1, 1), in TestCRC32UpdateDirectByteBuffer()
469 assertEqual(CRC32BytesUsingUpdateInt(0x0f, 0x0f, 0x0f), in TestCRC32UpdateDirectByteBuffer()
471 assertEqual(CRC32BytesUsingUpdateInt(0xff, 0xff, 0xff), in TestCRC32UpdateDirectByteBuffer()
473 assertEqual(CRC32BytesUsingUpdateInt(1, 2, 3), in TestCRC32UpdateDirectByteBuffer()
475 assertEqual( in TestCRC32UpdateDirectByteBuffer()
479 assertEqual(CRC32BytesUsingUpdateInt(0, 0, 0), in TestCRC32UpdateDirectByteBuffer()
481 assertEqual(CRC32BytesUsingUpdateInt(1, 1, 1), in TestCRC32UpdateDirectByteBuffer()
483 assertEqual(CRC32BytesUsingUpdateInt(0x0f, 0x0f, 0x0f), in TestCRC32UpdateDirectByteBuffer()
485 assertEqual(CRC32BytesUsingUpdateInt(0xff, 0xff, 0xff), in TestCRC32UpdateDirectByteBuffer()
487 assertEqual(CRC32BytesUsingUpdateInt(1, 2, 3), in TestCRC32UpdateDirectByteBuffer()
489 assertEqual( in TestCRC32UpdateDirectByteBuffer()
497 assertEqual(CRC32BytesUsingUpdateInt(bytes, 0, bytes.length), in TestCRC32UpdateDirectByteBuffer()
499 assertEqual(CRC32BytesUsingUpdateInt(bytes, 0, 8 * 1024), in TestCRC32UpdateDirectByteBuffer()
504 assertEqual(CRC32BytesUsingUpdateInt(bytes, off, len), in TestCRC32UpdateDirectByteBuffer()
511 assertEqual(CRC32BytesUsingUpdateInt(bytes, o, l), in TestCRC32UpdateDirectByteBuffer()
517 assertEqual(CRC32BytesUsingUpdateInt(bytes, 0, len - 1), in TestCRC32UpdateDirectByteBuffer()
519 assertEqual(CRC32BytesUsingUpdateInt(bytes, 0, len), in TestCRC32UpdateDirectByteBuffer()
521 assertEqual(CRC32BytesUsingUpdateInt(bytes, 0, len + 1), in TestCRC32UpdateDirectByteBuffer()
526 assertEqual(CRC32BytesUsingUpdateInt(bytes, off, len), in TestCRC32UpdateDirectByteBuffer()