Lines Matching refs:expectEqualsInt

233       expectEqualsInt(0, rotateLeftBoolean(false, i));  in testRotateLeftBoolean()
234 expectEqualsInt(1 << j, rotateLeftBoolean(true, i)); in testRotateLeftBoolean()
239 expectEqualsInt(0x00000001, rotateLeftByte((byte)0x01, 0)); in testRotateLeftByte()
240 expectEqualsInt(0x00000002, rotateLeftByte((byte)0x01, 1)); in testRotateLeftByte()
241 expectEqualsInt(0x80000000, rotateLeftByte((byte)0x01, 31)); in testRotateLeftByte()
242 expectEqualsInt(0x00000001, rotateLeftByte((byte)0x01, 32)); // overshoot in testRotateLeftByte()
243 expectEqualsInt(0xFFFFFF03, rotateLeftByte((byte)0x81, 1)); in testRotateLeftByte()
244 expectEqualsInt(0xFFFFFE07, rotateLeftByte((byte)0x81, 2)); in testRotateLeftByte()
245 expectEqualsInt(0x00000120, rotateLeftByte((byte)0x12, 4)); in testRotateLeftByte()
246 expectEqualsInt(0xFFFF9AFF, rotateLeftByte((byte)0x9A, 8)); in testRotateLeftByte()
249 expectEqualsInt(0x00000000, rotateLeftByte((byte)0x0000, i)); in testRotateLeftByte()
250 expectEqualsInt(0xFFFFFFFF, rotateLeftByte((byte)0xFFFF, i)); in testRotateLeftByte()
251 expectEqualsInt((1 << j), rotateLeftByte((byte)0x0001, i)); in testRotateLeftByte()
252 expectEqualsInt((0x12 << j) | (0x12 >>> -j), rotateLeftByte((byte)0x12, i)); in testRotateLeftByte()
257 expectEqualsInt(0x00000001, rotateLeftShort((short)0x0001, 0)); in testRotateLeftShort()
258 expectEqualsInt(0x00000002, rotateLeftShort((short)0x0001, 1)); in testRotateLeftShort()
259 expectEqualsInt(0x80000000, rotateLeftShort((short)0x0001, 31)); in testRotateLeftShort()
260 expectEqualsInt(0x00000001, rotateLeftShort((short)0x0001, 32)); // overshoot in testRotateLeftShort()
261 expectEqualsInt(0xFFFF0003, rotateLeftShort((short)0x8001, 1)); in testRotateLeftShort()
262 expectEqualsInt(0xFFFE0007, rotateLeftShort((short)0x8001, 2)); in testRotateLeftShort()
263 expectEqualsInt(0x00012340, rotateLeftShort((short)0x1234, 4)); in testRotateLeftShort()
264 expectEqualsInt(0xFF9ABCFF, rotateLeftShort((short)0x9ABC, 8)); in testRotateLeftShort()
267 expectEqualsInt(0x00000000, rotateLeftShort((short)0x0000, i)); in testRotateLeftShort()
268 expectEqualsInt(0xFFFFFFFF, rotateLeftShort((short)0xFFFF, i)); in testRotateLeftShort()
269 expectEqualsInt((1 << j), rotateLeftShort((short)0x0001, i)); in testRotateLeftShort()
270 expectEqualsInt((0x1234 << j) | (0x1234 >>> -j), rotateLeftShort((short)0x1234, i)); in testRotateLeftShort()
275 expectEqualsInt(0x00000001, rotateLeftChar((char)0x0001, 0)); in testRotateLeftChar()
276 expectEqualsInt(0x00000002, rotateLeftChar((char)0x0001, 1)); in testRotateLeftChar()
277 expectEqualsInt(0x80000000, rotateLeftChar((char)0x0001, 31)); in testRotateLeftChar()
278 expectEqualsInt(0x00000001, rotateLeftChar((char)0x0001, 32)); // overshoot in testRotateLeftChar()
279 expectEqualsInt(0x00010002, rotateLeftChar((char)0x8001, 1)); in testRotateLeftChar()
280 expectEqualsInt(0x00020004, rotateLeftChar((char)0x8001, 2)); in testRotateLeftChar()
281 expectEqualsInt(0x00012340, rotateLeftChar((char)0x1234, 4)); in testRotateLeftChar()
282 expectEqualsInt(0x009ABC00, rotateLeftChar((char)0x9ABC, 8)); in testRotateLeftChar()
283 expectEqualsInt(0x00FF0000, rotateLeftChar((char)0xFF00, 8)); in testRotateLeftChar()
286 expectEqualsInt(0x00000000, rotateLeftChar((char)0x0000, i)); in testRotateLeftChar()
287 expectEqualsInt((1 << j), rotateLeftChar((char)0x0001, i)); in testRotateLeftChar()
288 expectEqualsInt((0x1234 << j) | (0x1234 >>> -j), rotateLeftChar((char)0x1234, i)); in testRotateLeftChar()
293 expectEqualsInt(0x00000001, rotateLeftInt(0x00000001, 0)); in testRotateLeftInt()
294 expectEqualsInt(0x00000002, rotateLeftInt(0x00000001, 1)); in testRotateLeftInt()
295 expectEqualsInt(0x80000000, rotateLeftInt(0x00000001, 31)); in testRotateLeftInt()
296 expectEqualsInt(0x00000001, rotateLeftInt(0x00000001, 32)); // overshoot in testRotateLeftInt()
297 expectEqualsInt(0x00000003, rotateLeftInt(0x80000001, 1)); in testRotateLeftInt()
298 expectEqualsInt(0x00000006, rotateLeftInt(0x80000001, 2)); in testRotateLeftInt()
299 expectEqualsInt(0x23456781, rotateLeftInt(0x12345678, 4)); in testRotateLeftInt()
300 expectEqualsInt(0xBCDEF09A, rotateLeftInt(0x9ABCDEF0, 8)); in testRotateLeftInt()
303 expectEqualsInt(0x00000000, rotateLeftInt(0x00000000, i)); in testRotateLeftInt()
304 expectEqualsInt(0xFFFFFFFF, rotateLeftInt(0xFFFFFFFF, i)); in testRotateLeftInt()
305 expectEqualsInt(1 << j, rotateLeftInt(0x00000001, i)); in testRotateLeftInt()
306 expectEqualsInt((0x12345678 << j) | (0x12345678 >>> -j), rotateLeftInt(0x12345678, i)); in testRotateLeftInt()
377 expectEqualsInt(0, rotateRightBoolean(false, i)); in testRotateRightBoolean()
378 expectEqualsInt(1 << j, rotateRightBoolean(true, i)); in testRotateRightBoolean()
383 expectEqualsInt(0xFFFFFF80, rotateRightByte((byte)0x80, 0)); in testRotateRightByte()
384 expectEqualsInt(0x7FFFFFC0, rotateRightByte((byte)0x80, 1)); in testRotateRightByte()
385 expectEqualsInt(0xFFFFFF01, rotateRightByte((byte)0x80, 31)); in testRotateRightByte()
386 expectEqualsInt(0xFFFFFF80, rotateRightByte((byte)0x80, 32)); // overshoot in testRotateRightByte()
387 expectEqualsInt(0xFFFFFFC0, rotateRightByte((byte)0x81, 1)); in testRotateRightByte()
388 expectEqualsInt(0x7FFFFFE0, rotateRightByte((byte)0x81, 2)); in testRotateRightByte()
389 expectEqualsInt(0x20000001, rotateRightByte((byte)0x12, 4)); in testRotateRightByte()
390 expectEqualsInt(0x9AFFFFFF, rotateRightByte((byte)0x9A, 8)); in testRotateRightByte()
393 expectEqualsInt(0x00000000, rotateRightByte((byte)0x00, i)); in testRotateRightByte()
394 expectEqualsInt(0xFFFFFFFF, rotateRightByte((byte)0xFF, i)); in testRotateRightByte()
395 expectEqualsInt(1 << (32 - j), rotateRightByte((byte)0x01, i)); in testRotateRightByte()
396 expectEqualsInt((0x12 >>> j) | (0x12 << -j), rotateRightByte((byte)0x12, i)); in testRotateRightByte()
401 expectEqualsInt(0xFFFF8000, rotateRightShort((short)0x8000, 0)); in testRotateRightShort()
402 expectEqualsInt(0x7FFFC000, rotateRightShort((short)0x8000, 1)); in testRotateRightShort()
403 expectEqualsInt(0xFFFF0001, rotateRightShort((short)0x8000, 31)); in testRotateRightShort()
404 expectEqualsInt(0xFFFF8000, rotateRightShort((short)0x8000, 32)); // overshoot in testRotateRightShort()
405 expectEqualsInt(0xFFFFC000, rotateRightShort((short)0x8001, 1)); in testRotateRightShort()
406 expectEqualsInt(0x7FFFE000, rotateRightShort((short)0x8001, 2)); in testRotateRightShort()
407 expectEqualsInt(0x40000123, rotateRightShort((short)0x1234, 4)); in testRotateRightShort()
408 expectEqualsInt(0xBCFFFF9A, rotateRightShort((short)0x9ABC, 8)); in testRotateRightShort()
411 expectEqualsInt(0x00000000, rotateRightShort((short)0x0000, i)); in testRotateRightShort()
412 expectEqualsInt(0xFFFFFFFF, rotateRightShort((short)0xFFFF, i)); in testRotateRightShort()
413 expectEqualsInt(1 << (32 - j), rotateRightShort((short)0x0001, i)); in testRotateRightShort()
414 expectEqualsInt((0x1234 >>> j) | (0x1234 << -j), rotateRightShort((short)0x1234, i)); in testRotateRightShort()
419 expectEqualsInt(0x00008000, rotateRightChar((char)0x8000, 0)); in testRotateRightChar()
420 expectEqualsInt(0x00004000, rotateRightChar((char)0x8000, 1)); in testRotateRightChar()
421 expectEqualsInt(0x00010000, rotateRightChar((char)0x8000, 31)); in testRotateRightChar()
422 expectEqualsInt(0x00008000, rotateRightChar((char)0x8000, 32)); // overshoot in testRotateRightChar()
423 expectEqualsInt(0x80004000, rotateRightChar((char)0x8001, 1)); in testRotateRightChar()
424 expectEqualsInt(0x40002000, rotateRightChar((char)0x8001, 2)); in testRotateRightChar()
425 expectEqualsInt(0x40000123, rotateRightChar((char)0x1234, 4)); in testRotateRightChar()
426 expectEqualsInt(0xBC00009A, rotateRightChar((char)0x9ABC, 8)); in testRotateRightChar()
429 expectEqualsInt(0x00000000, rotateRightChar((char)0x0000, i)); in testRotateRightChar()
430 expectEqualsInt(1 << (32 - j), rotateRightChar((char)0x0001, i)); in testRotateRightChar()
431 expectEqualsInt((0x1234 >>> j) | (0x1234 << -j), rotateRightChar((char)0x1234, i)); in testRotateRightChar()
436 expectEqualsInt(0x80000000, rotateRightInt(0x80000000, 0)); in testRotateRightInt()
437 expectEqualsInt(0x40000000, rotateRightInt(0x80000000, 1)); in testRotateRightInt()
438 expectEqualsInt(0x00000001, rotateRightInt(0x80000000, 31)); in testRotateRightInt()
439 expectEqualsInt(0x80000000, rotateRightInt(0x80000000, 32)); // overshoot in testRotateRightInt()
440 expectEqualsInt(0xC0000000, rotateRightInt(0x80000001, 1)); in testRotateRightInt()
441 expectEqualsInt(0x60000000, rotateRightInt(0x80000001, 2)); in testRotateRightInt()
442 expectEqualsInt(0x81234567, rotateRightInt(0x12345678, 4)); in testRotateRightInt()
443 expectEqualsInt(0xF09ABCDE, rotateRightInt(0x9ABCDEF0, 8)); in testRotateRightInt()
446 expectEqualsInt(0x00000000, rotateRightInt(0x00000000, i)); in testRotateRightInt()
447 expectEqualsInt(0xFFFFFFFF, rotateRightInt(0xFFFFFFFF, i)); in testRotateRightInt()
448 expectEqualsInt(0x80000000 >>> j, rotateRightInt(0x80000000, i)); in testRotateRightInt()
449 expectEqualsInt((0x12345678 >>> j) | (0x12345678 << -j), rotateRightInt(0x12345678, i)); in testRotateRightInt()
474 expectEqualsInt(0x00000001, rotateLeftIntWithByteDistance(0x00000001, (byte)0)); in testRotateLeftIntWithByteDistance()
475 expectEqualsInt(0x00000002, rotateLeftIntWithByteDistance(0x00000001, (byte)1)); in testRotateLeftIntWithByteDistance()
476 expectEqualsInt(0x80000000, rotateLeftIntWithByteDistance(0x00000001, (byte)31)); in testRotateLeftIntWithByteDistance()
477 expectEqualsInt(0x00000001, rotateLeftIntWithByteDistance(0x00000001, (byte)32)); // overshoot in testRotateLeftIntWithByteDistance()
478 expectEqualsInt(0x00000003, rotateLeftIntWithByteDistance(0x80000001, (byte)1)); in testRotateLeftIntWithByteDistance()
479 expectEqualsInt(0x00000006, rotateLeftIntWithByteDistance(0x80000001, (byte)2)); in testRotateLeftIntWithByteDistance()
480 expectEqualsInt(0x23456781, rotateLeftIntWithByteDistance(0x12345678, (byte)4)); in testRotateLeftIntWithByteDistance()
481 expectEqualsInt(0xBCDEF09A, rotateLeftIntWithByteDistance(0x9ABCDEF0, (byte)8)); in testRotateLeftIntWithByteDistance()
484 expectEqualsInt(0x00000000, rotateLeftIntWithByteDistance(0x00000000, i)); in testRotateLeftIntWithByteDistance()
485 expectEqualsInt(0xFFFFFFFF, rotateLeftIntWithByteDistance(0xFFFFFFFF, i)); in testRotateLeftIntWithByteDistance()
486 expectEqualsInt(1 << j, rotateLeftIntWithByteDistance(0x00000001, i)); in testRotateLeftIntWithByteDistance()
487 expectEqualsInt((0x12345678 << j) | (0x12345678 >>> -j), in testRotateLeftIntWithByteDistance()
493 expectEqualsInt(0x80000000, rotateRightIntWithByteDistance(0x80000000, (byte)0)); in testRotateRightIntWithByteDistance()
494 expectEqualsInt(0x40000000, rotateRightIntWithByteDistance(0x80000000, (byte)1)); in testRotateRightIntWithByteDistance()
495 expectEqualsInt(0x00000001, rotateRightIntWithByteDistance(0x80000000, (byte)31)); in testRotateRightIntWithByteDistance()
496 expectEqualsInt(0x80000000, rotateRightIntWithByteDistance(0x80000000, (byte)32)); // overshoot in testRotateRightIntWithByteDistance()
497 expectEqualsInt(0xC0000000, rotateRightIntWithByteDistance(0x80000001, (byte)1)); in testRotateRightIntWithByteDistance()
498 expectEqualsInt(0x60000000, rotateRightIntWithByteDistance(0x80000001, (byte)2)); in testRotateRightIntWithByteDistance()
499 expectEqualsInt(0x81234567, rotateRightIntWithByteDistance(0x12345678, (byte)4)); in testRotateRightIntWithByteDistance()
500 expectEqualsInt(0xF09ABCDE, rotateRightIntWithByteDistance(0x9ABCDEF0, (byte)8)); in testRotateRightIntWithByteDistance()
503 expectEqualsInt(0x00000000, rotateRightIntWithByteDistance(0x00000000, i)); in testRotateRightIntWithByteDistance()
504 expectEqualsInt(0xFFFFFFFF, rotateRightIntWithByteDistance(0xFFFFFFFF, i)); in testRotateRightIntWithByteDistance()
505 expectEqualsInt(0x80000000 >>> j, rotateRightIntWithByteDistance(0x80000000, i)); in testRotateRightIntWithByteDistance()
506 expectEqualsInt((0x12345678 >>> j) | (0x12345678 << -j), in testRotateRightIntWithByteDistance()
535 private static void expectEqualsInt(int expected, int result) { in expectEqualsInt() method in TestRotate