• Home
  • Raw
  • Download

Lines Matching refs:Assert

17 import junit.framework.Assert;
103 Assert.assertNotNull(Thread.currentThread()); in test_Thread_currentThread()
111 Assert.assertEquals(str0.length(), 0); in test_String_length()
112 Assert.assertEquals(str1.length(), 1); in test_String_length()
113 Assert.assertEquals(str80.length(), 80); in test_String_length()
118 Assert.fail(); in test_String_length()
127 Assert.assertTrue(str0.isEmpty()); in test_String_isEmpty()
128 Assert.assertFalse(str1.isEmpty()); in test_String_isEmpty()
133 Assert.fail(); in test_String_isEmpty()
144 Assert.assertEquals(testStr.length() - 1, 33); // 33 = testStr.length()-1 as a constant. in test_String_charAt()
145 Assert.assertEquals('f', testStr.charAt(33)); in test_String_charAt()
151 Assert.assertEquals(a, testStr.charAt(0)); in test_String_charAt()
152 Assert.assertEquals(b, testStr.charAt(1)); in test_String_charAt()
153 Assert.assertEquals(c, testStr.charAt(10)); in test_String_charAt()
154 Assert.assertEquals(d, testStr.charAt(testStr.length()-1)); in test_String_charAt()
163 Assert.fail(); in test_String_charAtExc()
168 Assert.fail(); in test_String_charAtExc()
175 Assert.assertEquals(testStr.length(), 12); // 12 = " is the time".length() in test_String_charAtExc()
178 Assert.fail(); in test_String_charAtExc()
183 Assert.fail(); in test_String_charAtExc()
188 Assert.fail(); in test_String_charAtExc()
196 Assert.assertEquals(testStr.length(), 12); // 12 = " is the time".length() in test_String_charAtExc()
199 Assert.fail(); in test_String_charAtExc()
206 Assert.fail(); in test_String_charAtExc()
213 Assert.fail(); in test_String_charAtExc()
226 Assert.fail(); in test_String_charAtExc2()
231 Assert.fail(); in test_String_charAtExc2()
237 Assert.assertEquals('N', testStr.charAt(-1)); in test_String_charAtExc3()
241 Assert.assertEquals('N', testStr.charAt(100)); in test_String_charAtExc4()
253 Assert.assertEquals(str0.indexOf('a'), -1); in test_String_indexOf()
254 Assert.assertEquals(str3.indexOf('a'), 0); in test_String_indexOf()
255 Assert.assertEquals(str3.indexOf('b'), 1); in test_String_indexOf()
256 Assert.assertEquals(str3.indexOf('c'), 2); in test_String_indexOf()
257 Assert.assertEquals(str10.indexOf('j'), 9); in test_String_indexOf()
258 Assert.assertEquals(str40.indexOf('a'), 0); in test_String_indexOf()
259 Assert.assertEquals(str40.indexOf('b'), 38); in test_String_indexOf()
260 Assert.assertEquals(str40.indexOf('c'), 39); in test_String_indexOf()
261 Assert.assertEquals(str0.indexOf('a',20), -1); in test_String_indexOf()
262 Assert.assertEquals(str0.indexOf('a',0), -1); in test_String_indexOf()
263 Assert.assertEquals(str0.indexOf('a',-1), -1); in test_String_indexOf()
264 Assert.assertEquals(str1.indexOf('/',++start), -1); in test_String_indexOf()
265 Assert.assertEquals(str1.indexOf('a',negIndex[0]), -1); in test_String_indexOf()
266 Assert.assertEquals(str3.indexOf('a',0), 0); in test_String_indexOf()
267 Assert.assertEquals(str3.indexOf('a',1), -1); in test_String_indexOf()
268 Assert.assertEquals(str3.indexOf('a',1234), -1); in test_String_indexOf()
269 Assert.assertEquals(str3.indexOf('b',0), 1); in test_String_indexOf()
270 Assert.assertEquals(str3.indexOf('b',1), 1); in test_String_indexOf()
271 Assert.assertEquals(str3.indexOf('c',2), 2); in test_String_indexOf()
272 Assert.assertEquals(str10.indexOf('j',5), 9); in test_String_indexOf()
273 Assert.assertEquals(str10.indexOf('j',9), 9); in test_String_indexOf()
274 Assert.assertEquals(str40.indexOf('a',10), 10); in test_String_indexOf()
275 Assert.assertEquals(str40.indexOf('b',40), -1); in test_String_indexOf()
328 Assert.assertEquals(str0.indexOf(searchData[0][0]), searchData[0][2]); in testStringIndexOfCharsImpl()
329 Assert.assertEquals(str3.indexOf(searchData[1][0]), searchData[1][2]); in testStringIndexOfCharsImpl()
330 Assert.assertEquals(str3.indexOf(searchData[2][0]), searchData[2][2]); in testStringIndexOfCharsImpl()
331 Assert.assertEquals(str3.indexOf(searchData[3][0]), searchData[3][2]); in testStringIndexOfCharsImpl()
332 Assert.assertEquals(str10.indexOf(searchData[4][0]), searchData[4][2]); in testStringIndexOfCharsImpl()
333 Assert.assertEquals(str40.indexOf(searchData[5][0]), searchData[5][2]); in testStringIndexOfCharsImpl()
334 Assert.assertEquals(str40.indexOf(searchData[6][0]), searchData[6][2]); in testStringIndexOfCharsImpl()
335 Assert.assertEquals(str40.indexOf(searchData[7][0]), searchData[7][2]); in testStringIndexOfCharsImpl()
336 Assert.assertEquals(str0.indexOf(searchData[8][0], searchData[8][1]), searchData[8][2]); in testStringIndexOfCharsImpl()
337 Assert.assertEquals(str0.indexOf(searchData[9][0], searchData[9][1]), searchData[9][2]); in testStringIndexOfCharsImpl()
338 Assert.assertEquals(str0.indexOf(searchData[10][0], searchData[10][1]), searchData[10][2]); in testStringIndexOfCharsImpl()
339 Assert.assertEquals(str1.indexOf(searchData[11][0], searchData[11][1]), searchData[11][2]); in testStringIndexOfCharsImpl()
340 Assert.assertEquals(str1.indexOf(searchData[12][0], searchData[12][1]), searchData[12][2]); in testStringIndexOfCharsImpl()
341 Assert.assertEquals(str3.indexOf(searchData[13][0], searchData[13][1]), searchData[13][2]); in testStringIndexOfCharsImpl()
342 Assert.assertEquals(str3.indexOf(searchData[14][0], searchData[14][1]), searchData[14][2]); in testStringIndexOfCharsImpl()
343 Assert.assertEquals(str3.indexOf(searchData[15][0], searchData[15][1]), searchData[15][2]); in testStringIndexOfCharsImpl()
344 Assert.assertEquals(str3.indexOf(searchData[16][0], searchData[16][1]), searchData[16][2]); in testStringIndexOfCharsImpl()
345 Assert.assertEquals(str3.indexOf(searchData[17][0], searchData[17][1]), searchData[17][2]); in testStringIndexOfCharsImpl()
346 Assert.assertEquals(str3.indexOf(searchData[18][0], searchData[18][1]), searchData[18][2]); in testStringIndexOfCharsImpl()
347 Assert.assertEquals(str10.indexOf(searchData[19][0], searchData[19][1]), searchData[19][2]); in testStringIndexOfCharsImpl()
348 Assert.assertEquals(str10.indexOf(searchData[20][0], searchData[20][1]), searchData[20][2]); in testStringIndexOfCharsImpl()
349 Assert.assertEquals(str40.indexOf(searchData[21][0], searchData[21][1]), searchData[21][2]); in testStringIndexOfCharsImpl()
350 Assert.assertEquals(str40.indexOf(searchData[22][0], searchData[22][1]), searchData[22][2]); in testStringIndexOfCharsImpl()
358 Assert.assertEquals(stringWithSurrogates.indexOf(supplementaryChar), "hello ".length()); in testSurrogateIndexOf()
359 Assert.assertEquals(stringWithSurrogates.indexOf(supplementaryChar, 2), "hello ".length()); in testSurrogateIndexOf()
360 Assert.assertEquals(stringWithSurrogates.indexOf(supplementaryChar, 6), 6); in testSurrogateIndexOf()
361 Assert.assertEquals(stringWithSurrogates.indexOf(supplementaryChar, 7), -1); in testSurrogateIndexOf()
363 Assert.assertEquals(stringWithSurrogates.indexOf(supplementaryChar - 0x10000), -1); in testSurrogateIndexOf()
364 Assert.assertEquals(stringWithSurrogates.indexOf(supplementaryChar | 0x80000000), -1); in testSurrogateIndexOf()
371 Assert.fail(); in testIndexOfNull()
376 Assert.fail(); in testIndexOfNull()
381 Assert.fail(); in testIndexOfNull()
406 Assert.assertTrue(lc.toUpperCase().equals(uc)); in test_String_compareTo()
408 Assert.assertEquals(str32.compareTo(str33), -1); in test_String_compareTo()
409 Assert.assertEquals(str33.compareTo(str32), 1); in test_String_compareTo()
411 Assert.assertTrue(test.equals(test)); in test_String_compareTo()
412 Assert.assertTrue(test.equals(test1)); in test_String_compareTo()
413 Assert.assertFalse(test.equals(test2)); in test_String_compareTo()
415 Assert.assertEquals(test.compareTo(test1), 0); in test_String_compareTo()
416 Assert.assertTrue(test1.compareTo(test2) > 0); in test_String_compareTo()
417 Assert.assertTrue(test2.compareTo(test1) < 0); in test_String_compareTo()
420 Assert.assertEquals(test.compareTo(sub), 0); in test_String_compareTo()
421 Assert.assertEquals(sub.compareTo(test), 0); in test_String_compareTo()
422 Assert.assertTrue(test.equals(sub)); in test_String_compareTo()
423 Assert.assertTrue(sub.equals(test)); in test_String_compareTo()
425 Assert.assertFalse(offset.equals(sub)); in test_String_compareTo()
426 Assert.assertFalse(sub.equals(offset)); in test_String_compareTo()
428 Assert.assertFalse(test.equals(blah)); in test_String_compareTo()
433 Assert.fail("didn't get expected npe"); in test_String_compareTo()
437 Assert.assertFalse(test.equals(null)); in test_String_compareTo()
440 Assert.assertTrue(test.equals("123456789")); in test_String_compareTo()
441 Assert.assertFalse(test.equals(test1)); in test_String_compareTo()
444 Assert.assertTrue(test.equals("23456789")); in test_String_compareTo()
447 Assert.assertTrue(test.equals("3456789")); in test_String_compareTo()
450 Assert.assertTrue(test.equals("456789")); in test_String_compareTo()
453 Assert.assertTrue(test.equals("78")); in test_String_compareTo()
457 Assert.assertEquals(4, strings.length); in test_String_compareTo()
459 Assert.assertEquals("this is a path", test.replaceAll("/", " ")); in test_String_compareTo()
460 Assert.assertEquals("this is a path", test.replace("/", " ")); in test_String_compareTo()
465 Assert.assertEquals(Math.abs(0), 0);
466 Assert.assertEquals(Math.abs(123), 123);
467 Assert.assertEquals(Math.abs(-123), 123);
468 Assert.assertEquals(Math.abs(Integer.MAX_VALUE), Integer.MAX_VALUE);
469 Assert.assertEquals(Math.abs(Integer.MIN_VALUE), Integer.MIN_VALUE);
470 Assert.assertEquals(Math.abs(Integer.MIN_VALUE - 1), Integer.MAX_VALUE);
471 Assert.assertEquals(Math.abs(Integer.MIN_VALUE + 1), Integer.MAX_VALUE);
476 Assert.assertEquals(Math.abs(0L), 0L);
477 Assert.assertEquals(Math.abs(123L), 123L);
478 Assert.assertEquals(Math.abs(-123L), 123L);
479 Assert.assertEquals(Math.abs(Long.MAX_VALUE), Long.MAX_VALUE);
480 Assert.assertEquals(Math.abs(Long.MIN_VALUE), Long.MIN_VALUE);
481 Assert.assertEquals(Math.abs(Long.MIN_VALUE - 1), Long.MAX_VALUE);
482 Assert.assertEquals(Math.abs(2147483648L), 2147483648L);
487 Assert.assertEquals(Math.min(0, 0), 0);
488 Assert.assertEquals(Math.min(1, 0), 0);
489 Assert.assertEquals(Math.min(0, 1), 0);
490 Assert.assertEquals(Math.min(0, Integer.MAX_VALUE), 0);
491 Assert.assertEquals(Math.min(Integer.MIN_VALUE, 0), Integer.MIN_VALUE);
492 Assert.assertEquals(Math.min(Integer.MIN_VALUE, Integer.MAX_VALUE), Integer.MIN_VALUE);
497 Assert.assertEquals(Math.max(0, 0), 0);
498 Assert.assertEquals(Math.max(1, 0), 1);
499 Assert.assertEquals(Math.max(0, 1), 1);
500 Assert.assertEquals(Math.max(0, Integer.MAX_VALUE), Integer.MAX_VALUE);
501 Assert.assertEquals(Math.max(Integer.MIN_VALUE, 0), 0);
502 Assert.assertEquals(Math.max(Integer.MIN_VALUE, Integer.MAX_VALUE), Integer.MAX_VALUE);
507 Assert.assertEquals(Math.min(0L, 0L), 0L);
508 Assert.assertEquals(Math.min(1L, 0L), 0L);
509 Assert.assertEquals(Math.min(0L, 1L), 0L);
510 Assert.assertEquals(Math.min(0L, Long.MAX_VALUE), 0L);
511 Assert.assertEquals(Math.min(Long.MIN_VALUE, 0L), Long.MIN_VALUE);
512 Assert.assertEquals(Math.min(Long.MIN_VALUE, Long.MAX_VALUE), Long.MIN_VALUE);
517 Assert.assertEquals(Math.max(0L, 0L), 0L);
518 Assert.assertEquals(Math.max(1L, 0L), 1L);
519 Assert.assertEquals(Math.max(0L, 1L), 1L);
520 Assert.assertEquals(Math.max(0L, Long.MAX_VALUE), Long.MAX_VALUE);
521 Assert.assertEquals(Math.max(Long.MIN_VALUE, 0L), 0L);
522 Assert.assertEquals(Math.max(Long.MIN_VALUE, Long.MAX_VALUE), Long.MAX_VALUE);
527 Assert.assertTrue(Float.isNaN(Math.min(1.0f, Float.NaN)));
528 Assert.assertTrue(Float.isNaN(Math.min(Float.NaN, 1.0f)));
529 Assert.assertEquals(Math.min(-0.0f, 0.0f), -0.0f);
530 Assert.assertEquals(Math.min(0.0f, -0.0f), -0.0f);
531 Assert.assertEquals(Math.min(-0.0f, -0.0f), -0.0f);
532 Assert.assertEquals(Math.min(0.0f, 0.0f), 0.0f);
533 Assert.assertEquals(Math.min(1.0f, 0.0f), 0.0f);
534 Assert.assertEquals(Math.min(0.0f, 1.0f), 0.0f);
535 Assert.assertEquals(Math.min(0.0f, Float.MAX_VALUE), 0.0f);
536 Assert.assertEquals(Math.min(Float.MIN_VALUE, 0.0f), 0.0f);
537 Assert.assertEquals(Math.min(Float.MIN_VALUE, Float.MAX_VALUE), Float.MIN_VALUE);
539 Assert.assertEquals(Math.min(Float.MIN_VALUE, Float.MIN_VALUE), Float.MIN_VALUE);
544 Assert.assertTrue(Float.isNaN(Math.max(1.0f, Float.NaN)));
545 Assert.assertTrue(Float.isNaN(Math.max(Float.NaN, 1.0f)));
546 Assert.assertEquals(Math.max(-0.0f, 0.0f), 0.0f);
547 Assert.assertEquals(Math.max(0.0f, -0.0f), 0.0f);
548 Assert.assertEquals(Math.max(-0.0f, -0.0f), -0.0f);
549 Assert.assertEquals(Math.max(0.0f, 0.0f), 0.0f);
550 Assert.assertEquals(Math.max(1.0f, 0.0f), 1.0f);
551 Assert.assertEquals(Math.max(0.0f, 1.0f), 1.0f);
552 Assert.assertEquals(Math.max(0.0f, Float.MAX_VALUE), Float.MAX_VALUE);
553 Assert.assertEquals(Math.max(Float.MIN_VALUE, Float.MAX_VALUE), Float.MAX_VALUE);
555 Assert.assertEquals(Math.max(Float.MIN_VALUE, 0.0f), Float.MIN_VALUE);
556 Assert.assertEquals(Math.max(Float.MIN_VALUE, Float.MIN_VALUE), Float.MIN_VALUE);
561 Assert.assertTrue(Double.isNaN(Math.min(1.0d, Double.NaN)));
562 Assert.assertTrue(Double.isNaN(Math.min(Double.NaN, 1.0d)));
563 Assert.assertEquals(Math.min(-0.0d, 0.0d), -0.0d);
564 Assert.assertEquals(Math.min(0.0d, -0.0d), -0.0d);
565 Assert.assertEquals(Math.min(-0.0d, -0.0d), -0.0d);
566 Assert.assertEquals(Math.min(0.0d, 0.0d), 0.0d);
567 Assert.assertEquals(Math.min(1.0d, 0.0d), 0.0d);
568 Assert.assertEquals(Math.min(0.0d, 1.0d), 0.0d);
569 Assert.assertEquals(Math.min(0.0d, Double.MAX_VALUE), 0.0d);
570 Assert.assertEquals(Math.min(Double.MIN_VALUE, 0.0d), 0.0d);
571 Assert.assertEquals(Math.min(Double.MIN_VALUE, Double.MAX_VALUE), Double.MIN_VALUE);
573 Assert.assertEquals(Math.min(Double.MIN_VALUE, Double.MIN_VALUE), Double.MIN_VALUE);
578 Assert.assertTrue(Double.isNaN(Math.max(1.0d, Double.NaN)));
579 Assert.assertTrue(Double.isNaN(Math.max(Double.NaN, 1.0d)));
580 Assert.assertEquals(Math.max(-0.0d, 0.0d), 0.0d);
581 Assert.assertEquals(Math.max(0.0d, -0.0d), 0.0d);
582 Assert.assertEquals(Math.max(-0.0d, -0.0d), -0.0d);
583 Assert.assertEquals(Math.max(0.0d, 0.0d), 0.0d);
584 Assert.assertEquals(Math.max(1.0d, 0.0d), 1.0d);
585 Assert.assertEquals(Math.max(0.0d, 1.0d), 1.0d);
586 Assert.assertEquals(Math.max(0.0d, Double.MAX_VALUE), Double.MAX_VALUE);
587 Assert.assertEquals(Math.max(Double.MIN_VALUE, 0.0d), Double.MIN_VALUE);
588 Assert.assertEquals(Math.max(Double.MIN_VALUE, Double.MAX_VALUE), Double.MAX_VALUE);
590 Assert.assertEquals(Math.max(Double.MIN_VALUE, 0.0d), Double.MIN_VALUE);
591 Assert.assertEquals(Math.max(Double.MIN_VALUE, Double.MIN_VALUE), Double.MIN_VALUE);
596 Assert.assertEquals(Math.sqrt(+4.0), +2.0d, 0.0);
597 Assert.assertEquals(Math.sqrt(+49.0), +7.0d, 0.0);
598 Assert.assertEquals(Math.sqrt(+1.44), +1.2d, 0.0);
603 Assert.assertEquals(Math.ceil(+0.0), +0.0d, 0.0);
604 Assert.assertEquals(Math.ceil(-0.0), -0.0d, 0.0);
605 Assert.assertEquals(Math.ceil(-0.9), -0.0d, 0.0);
606 Assert.assertEquals(Math.ceil(-0.5), -0.0d, 0.0);
607 Assert.assertEquals(Math.ceil(0.0), -0.0d, 0.0);
608 Assert.assertEquals(Math.ceil(+2.0), +2.0d, 0.0);
609 Assert.assertEquals(Math.ceil(+2.1), +3.0d, 0.0);
610 Assert.assertEquals(Math.ceil(+2.5), +3.0d, 0.0);
611 Assert.assertEquals(Math.ceil(+2.9), +3.0d, 0.0);
612 Assert.assertEquals(Math.ceil(+3.0), +3.0d, 0.0);
613 Assert.assertEquals(Math.ceil(-2.0), -2.0d, 0.0);
614 Assert.assertEquals(Math.ceil(-2.1), -2.0d, 0.0);
615 Assert.assertEquals(Math.ceil(-2.5), -2.0d, 0.0);
616 Assert.assertEquals(Math.ceil(-2.9), -2.0d, 0.0);
617 Assert.assertEquals(Math.ceil(-3.0), -3.0d, 0.0);
619 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0x432FFFFFFFFFFFFDl)),
622 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0x432FFFFFFFFFFFFFl)),
625 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0x4330000000000000l)),
628 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0x433FFFFFFFFFFFFFl)),
631 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0x4340000000000000l)),
634 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0x43DFFFFFFFFFFFFFl)),
637 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0x43E0000000000000l)),
640 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0x43F0000000000000l)),
643 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0xC32FFFFFFFFFFFFDl)),
646 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0xC32FFFFFFFFFFFFFl)),
649 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0xC330000000000000l)),
652 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0xC33FFFFFFFFFFFFFl)),
655 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0xC340000000000000l)),
658 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0xC3DFFFFFFFFFFFFFl)),
661 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0xC3E0000000000000l)),
664 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0xC3F0000000000000l)),
666 Assert.assertEquals(Math.ceil(Double.NaN), Double.NaN, 0.0);
667 Assert.assertEquals(Math.ceil(Double.POSITIVE_INFINITY), Double.POSITIVE_INFINITY, 0.0);
668 Assert.assertEquals(Math.ceil(Double.NEGATIVE_INFINITY), Double.NEGATIVE_INFINITY, 0.0);
673 Assert.assertEquals(Math.floor(+0.0), +0.0d, 0.0);
674 Assert.assertEquals(Math.floor(-0.0), -0.0d, 0.0);
675 Assert.assertEquals(Math.floor(+2.0), +2.0d, 0.0);
676 Assert.assertEquals(Math.floor(+2.1), +2.0d, 0.0);
677 Assert.assertEquals(Math.floor(+2.5), +2.0d, 0.0);
678 Assert.assertEquals(Math.floor(+2.9), +2.0d, 0.0);
679 Assert.assertEquals(Math.floor(+3.0), +3.0d, 0.0);
680 Assert.assertEquals(Math.floor(-2.0), -2.0d, 0.0);
681 Assert.assertEquals(Math.floor(-2.1), -3.0d, 0.0);
682 Assert.assertEquals(Math.floor(-2.5), -3.0d, 0.0);
683 Assert.assertEquals(Math.floor(-2.9), -3.0d, 0.0);
684 Assert.assertEquals(Math.floor(-3.0), -3.0d, 0.0);
686 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0x432FFFFFFFFFFFFDl)),
689 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0x432FFFFFFFFFFFFFl)),
692 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0x4330000000000000l)),
695 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0x433FFFFFFFFFFFFFl)),
698 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0x4340000000000000l)),
701 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0x43DFFFFFFFFFFFFFl)),
704 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0x43E0000000000000l)),
707 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0x43F0000000000000l)),
710 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0xC32FFFFFFFFFFFFDl)),
713 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0xC32FFFFFFFFFFFFFl)),
716 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0xC330000000000000l)),
719 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0xC33FFFFFFFFFFFFFl)),
722 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0xC340000000000000l)),
725 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0xC3DFFFFFFFFFFFFFl)),
728 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0xC3E0000000000000l)),
731 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0xC3F0000000000000l)),
733 Assert.assertEquals(Math.floor(Double.NaN), Double.NaN, 0.0);
734 Assert.assertEquals(Math.floor(Double.POSITIVE_INFINITY), Double.POSITIVE_INFINITY, 0.0);
735 Assert.assertEquals(Math.floor(Double.NEGATIVE_INFINITY), Double.NEGATIVE_INFINITY, 0.0);
740 Assert.assertEquals(Math.rint(+0.0), +0.0d, 0.0);
741 Assert.assertEquals(Math.rint(-0.0), -0.0d, 0.0);
742 Assert.assertEquals(Math.rint(+0.5), +0.0d, 0.0); // expects tie-to-even
743 Assert.assertEquals(Math.rint(+2.0), +2.0d, 0.0);
744 Assert.assertEquals(Math.rint(+2.1), +2.0d, 0.0);
745 Assert.assertEquals(Math.rint(+2.5), +2.0d, 0.0); // expects tie-to-even
746 Assert.assertEquals(Math.rint(+2.9), +3.0d, 0.0);
747 Assert.assertEquals(Math.rint(+3.0), +3.0d, 0.0);
748 Assert.assertEquals(Math.rint(+3.5), +4.0d, 0.0); // expects tie-to-even
749 Assert.assertEquals(Math.rint(-2.0), -2.0d, 0.0);
750 Assert.assertEquals(Math.rint(-2.1), -2.0d, 0.0);
751 Assert.assertEquals(Math.rint(-2.5), -2.0d, 0.0); // expects tie-to-even
752 Assert.assertEquals(Math.rint(-2.9), -3.0d, 0.0);
753 Assert.assertEquals(Math.rint(-3.0), -3.0d, 0.0);
754 Assert.assertEquals(Math.rint(-3.5), -4.0d, 0.0); // expects tie-to-even
756 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0x432FFFFFFFFFFFFDl)),
759 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0x432FFFFFFFFFFFFFl)),
762 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0x4330000000000000l)),
765 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0x433FFFFFFFFFFFFFl)),
768 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0x4340000000000000l)),
771 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0x43DFFFFFFFFFFFFFl)),
774 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0x43E0000000000000l)),
777 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0x43F0000000000000l)),
780 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0xC32FFFFFFFFFFFFDl)),
783 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0xC32FFFFFFFFFFFFFl)),
786 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0xC330000000000000l)),
789 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0xC33FFFFFFFFFFFFFl)),
792 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0xC340000000000000l)),
795 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0xC3DFFFFFFFFFFFFFl)),
798 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0xC3E0000000000000l)),
801 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0xC3F0000000000000l)),
803 Assert.assertEquals(Math.rint(Double.NaN), Double.NaN, 0.0);
804 Assert.assertEquals(Math.rint(Double.POSITIVE_INFINITY), Double.POSITIVE_INFINITY, 0.0);
805 Assert.assertEquals(Math.rint(Double.NEGATIVE_INFINITY), Double.NEGATIVE_INFINITY, 0.0);
810 Assert.assertEquals(Math.round(+0.0d), (long)+0.0);
811 Assert.assertEquals(Math.round(-0.0d), (long)+0.0);
812 Assert.assertEquals(Math.round(2.0d), 2l);
813 Assert.assertEquals(Math.round(2.1d), 2l);
814 Assert.assertEquals(Math.round(2.5d), 3l);
815 Assert.assertEquals(Math.round(2.9d), 3l);
816 Assert.assertEquals(Math.round(3.0d), 3l);
817 Assert.assertEquals(Math.round(-2.0d), -2l);
818 Assert.assertEquals(Math.round(-2.1d), -2l);
819 Assert.assertEquals(Math.round(-2.5d), -2l);
820 Assert.assertEquals(Math.round(-2.9d), -3l);
821 Assert.assertEquals(Math.round(-3.0d), -3l);
822 Assert.assertEquals(Math.round(0.49999999999999994d), 0l);
823 Assert.assertEquals(Math.round(4503599627370495.0d), 4503599627370495l); // 2^52 - 1
824 Assert.assertEquals(Math.round(4503599627370495.5d), 4503599627370496l); // 2^52 - 0.5
825 Assert.assertEquals(Math.round(4503599627370496.0d), 4503599627370496l); // 2^52
826 Assert.assertEquals(Math.round(-4503599627370495.0d), -4503599627370495l); // -(2^52 - 1)
827 Assert.assertEquals(Math.round(-4503599627370495.5d), -4503599627370495l); // -(2^52 - 0.5)
828 Assert.assertEquals(Math.round(-4503599627370496.0d), -4503599627370496l); // -2^52
829 Assert.assertEquals(Math.round(9007199254740991.0d), 9007199254740991l); // 2^53 - 1
830 Assert.assertEquals(Math.round(-9007199254740991.0d), -9007199254740991l); // -(2^53 - 1)
831 Assert.assertEquals(Math.round(Double.NaN), (long)+0.0d);
832 Assert.assertEquals(Math.round(Long.MAX_VALUE + 1.0d), Long.MAX_VALUE);
833 Assert.assertEquals(Math.round(Long.MIN_VALUE - 1.0d), Long.MIN_VALUE);
834 Assert.assertEquals(Math.round(Double.longBitsToDouble(0x43F0000000000000l)),
836 Assert.assertEquals(Math.round(Double.longBitsToDouble(0xC3F0000000000000l)),
838 Assert.assertEquals(Math.round(Double.POSITIVE_INFINITY), Long.MAX_VALUE);
839 Assert.assertEquals(Math.round(Double.NEGATIVE_INFINITY), Long.MIN_VALUE);
844 Assert.assertEquals(Math.round(+0.0f), (int)+0.0);
845 Assert.assertEquals(Math.round(-0.0f), (int)+0.0);
846 Assert.assertEquals(Math.round(2.0f), 2);
847 Assert.assertEquals(Math.round(2.1f), 2);
848 Assert.assertEquals(Math.round(2.5f), 3);
849 Assert.assertEquals(Math.round(2.9f), 3);
850 Assert.assertEquals(Math.round(3.0f), 3);
851 Assert.assertEquals(Math.round(-2.0f), -2);
852 Assert.assertEquals(Math.round(-2.1f), -2);
853 Assert.assertEquals(Math.round(-2.5f), -2);
854 Assert.assertEquals(Math.round(-2.9f), -3);
855 Assert.assertEquals(Math.round(-3.0f), -3);
857 Assert.assertEquals(Math.round(Float.intBitsToFloat(0x3EFFFFFF)), (int)+0.0f);
858 Assert.assertEquals(Math.round(8388607.0f), 8388607); // 2^23 - 1
859 Assert.assertEquals(Math.round(8388607.5f), 8388608); // 2^23 - 0.5
860 Assert.assertEquals(Math.round(8388608.0f), 8388608); // 2^23
861 Assert.assertEquals(Math.round(-8388607.0f), -8388607); // -(2^23 - 1)
862 Assert.assertEquals(Math.round(-8388607.5f), -8388607); // -(2^23 - 0.5)
863 Assert.assertEquals(Math.round(-8388608.0f), -8388608); // -2^23
864 Assert.assertEquals(Math.round(16777215.0f), 16777215); // 2^24 - 1
865 Assert.assertEquals(Math.round(16777216.0f), 16777216); // 2^24
866 Assert.assertEquals(Math.round(-16777215.0f), -16777215); // -(2^24 - 1)
867 Assert.assertEquals(Math.round(-16777216.0f), -16777216); // -2^24
868 Assert.assertEquals(Math.round(Float.NaN), (int)+0.0f);
869 Assert.assertEquals(Math.round(Integer.MAX_VALUE + 1.0f), Integer.MAX_VALUE);
870 Assert.assertEquals(Math.round(Integer.MIN_VALUE - 1.0f), Integer.MIN_VALUE);
871 Assert.assertEquals(Math.round(Float.intBitsToFloat(0x4F800000)),
873 Assert.assertEquals(Math.round(Float.intBitsToFloat(0xCF800000)),
875 Assert.assertEquals(Math.round(Float.POSITIVE_INFINITY), Integer.MAX_VALUE);
876 Assert.assertEquals(Math.round(Float.NEGATIVE_INFINITY), Integer.MIN_VALUE);
881 Assert.assertTrue(Double.isNaN(Double.longBitsToDouble(0x7FF4000000000000l)));
882 Assert.assertTrue(Double.isNaN(Double.longBitsToDouble(0xFFF4000000000000l)));
884 Assert.assertTrue(Double.isNaN(Double.longBitsToDouble(0x7FF8000000000000l)));
885 Assert.assertTrue(Double.isNaN(Double.longBitsToDouble(0xFFF8000000000000l)));
887 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0x7FF0000000000000l)));
888 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0xFFF0000000000000l)));
890 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0x7FE0000000000000l)));
891 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0xFFE0000000000000l)));
892 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0x0010000000000000l)));
893 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0x8010000000000000l)));
895 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0x0000000000000000l)));
896 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0x8000000000000000l)));
898 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0x0008000000000000l)));
899 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0x8008000000000000l)));
900 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0x0000000000000001l)));
901 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0x8000000000000001l)));
906 Assert.assertTrue(Float.isNaN(Float.intBitsToFloat(0x7FA00000)));
907 Assert.assertTrue(Float.isNaN(Float.intBitsToFloat(0xFFA00000)));
909 Assert.assertTrue(Float.isNaN(Float.intBitsToFloat(0x7FC00000)));
910 Assert.assertTrue(Float.isNaN(Float.intBitsToFloat(0xFFC00000)));
912 Assert.assertFalse(Float.isNaN(Float.intBitsToFloat(0x7F800000)));
913 Assert.assertFalse(Float.isNaN(Float.intBitsToFloat(0xFF800000)));
915 Assert.assertFalse(Float.isNaN(Float.intBitsToFloat(0x7F000000)));
916 Assert.assertFalse(Float.isNaN(Float.intBitsToFloat(0xFF000000)));
917 Assert.assertFalse(Float.isNaN(Float.intBitsToFloat(0x00800000)));
918 Assert.assertFalse(Float.isNaN(Float.intBitsToFloat(0x80800000)));
920 Assert.assertFalse(Float.isNaN(Float.intBitsToFloat(0x00000000)));
921 Assert.assertFalse(Float.isNaN(Float.intBitsToFloat(0x80000000)));
923 Assert.assertFalse(Float.isNaN(Float.intBitsToFloat(0x00400000)));
924 Assert.assertFalse(Float.isNaN(Float.intBitsToFloat(0x80400000)));
925 Assert.assertFalse(Float.isNaN(Float.intBitsToFloat(0x00000001)));
926 Assert.assertFalse(Float.isNaN(Float.intBitsToFloat(0x80000001)));
931 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0x7FF4000000000000l)));
932 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0xFFF4000000000000l)));
934 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0x7FF8000000000000l)));
935 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0xFFF8000000000000l)));
937 Assert.assertTrue(Double.isInfinite(Double.longBitsToDouble(0x7FF0000000000000l)));
938 Assert.assertTrue(Double.isInfinite(Double.longBitsToDouble(0xFFF0000000000000l)));
940 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0x7FE0000000000000l)));
941 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0xFFE0000000000000l)));
942 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0x0010000000000000l)));
943 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0x8010000000000000l)));
945 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0x0000000000000000l)));
946 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0x8000000000000000l)));
948 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0x0008000000000000l)));
949 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0x8008000000000000l)));
950 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0x0000000000000001l)));
951 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0x8000000000000001l)));
956 Assert.assertFalse(Float.isInfinite(Float.intBitsToFloat(0x7FA00000)));
957 Assert.assertFalse(Float.isInfinite(Float.intBitsToFloat(0xFFA00000)));
959 Assert.assertFalse(Float.isInfinite(Float.intBitsToFloat(0x7FC00000)));
960 Assert.assertFalse(Float.isInfinite(Float.intBitsToFloat(0xFFC00000)));
962 Assert.assertTrue(Float.isInfinite(Float.intBitsToFloat(0x7F800000)));
963 Assert.assertTrue(Float.isInfinite(Float.intBitsToFloat(0xFF800000)));
965 Assert.assertFalse(Float.isInfinite(Float.intBitsToFloat(0x7F000000)));
966 Assert.assertFalse(Float.isInfinite(Float.intBitsToFloat(0xFF000000)));
967 Assert.assertFalse(Float.isInfinite(Float.intBitsToFloat(0x00800000)));
968 Assert.assertFalse(Float.isInfinite(Float.intBitsToFloat(0x80800000)));
970 Assert.assertFalse(Float.isInfinite(Float.intBitsToFloat(0x00000000)));
971 Assert.assertFalse(Float.isInfinite(Float.intBitsToFloat(0x80000000)));
973 Assert.assertFalse(Float.isInfinite(Float.intBitsToFloat(0x00400000)));
974 Assert.assertFalse(Float.isInfinite(Float.intBitsToFloat(0x80400000)));
975 Assert.assertFalse(Float.isInfinite(Float.intBitsToFloat(0x00000001)));
976 Assert.assertFalse(Float.isInfinite(Float.intBitsToFloat(0x80000001)));
981 Assert.assertEquals(StrictMath.abs(0), 0);
982 Assert.assertEquals(StrictMath.abs(123), 123);
983 Assert.assertEquals(StrictMath.abs(-123), 123);
984 Assert.assertEquals(StrictMath.abs(Integer.MAX_VALUE), Integer.MAX_VALUE);
985 Assert.assertEquals(StrictMath.abs(Integer.MIN_VALUE), Integer.MIN_VALUE);
986 Assert.assertEquals(StrictMath.abs(Integer.MIN_VALUE - 1), Integer.MAX_VALUE);
987 Assert.assertEquals(StrictMath.abs(Integer.MIN_VALUE + 1), Integer.MAX_VALUE);
992 Assert.assertEquals(StrictMath.abs(0L), 0L);
993 Assert.assertEquals(StrictMath.abs(123L), 123L);
994 Assert.assertEquals(StrictMath.abs(-123L), 123L);
995 Assert.assertEquals(StrictMath.abs(Long.MAX_VALUE), Long.MAX_VALUE);
996 Assert.assertEquals(StrictMath.abs(Long.MIN_VALUE), Long.MIN_VALUE);
997 Assert.assertEquals(StrictMath.abs(Long.MIN_VALUE - 1), Long.MAX_VALUE);
1002 Assert.assertEquals(StrictMath.min(0, 0), 0);
1003 Assert.assertEquals(StrictMath.min(1, 0), 0);
1004 Assert.assertEquals(StrictMath.min(0, 1), 0);
1005 Assert.assertEquals(StrictMath.min(0, Integer.MAX_VALUE), 0);
1006 Assert.assertEquals(StrictMath.min(Integer.MIN_VALUE, 0), Integer.MIN_VALUE);
1007 Assert.assertEquals(StrictMath.min(Integer.MIN_VALUE, Integer.MAX_VALUE), Integer.MIN_VALUE);
1012 Assert.assertEquals(StrictMath.max(0, 0), 0);
1013 Assert.assertEquals(StrictMath.max(1, 0), 1);
1014 Assert.assertEquals(StrictMath.max(0, 1), 1);
1015 Assert.assertEquals(StrictMath.max(0, Integer.MAX_VALUE), Integer.MAX_VALUE);
1016 Assert.assertEquals(StrictMath.max(Integer.MIN_VALUE, 0), 0);
1017 Assert.assertEquals(StrictMath.max(Integer.MIN_VALUE, Integer.MAX_VALUE), Integer.MAX_VALUE);
1022 Assert.assertEquals(StrictMath.min(0L, 0L), 0L);
1023 Assert.assertEquals(StrictMath.min(1L, 0L), 0L);
1024 Assert.assertEquals(StrictMath.min(0L, 1L), 0L);
1025 Assert.assertEquals(StrictMath.min(0L, Long.MAX_VALUE), 0L);
1026 Assert.assertEquals(StrictMath.min(Long.MIN_VALUE, 0L), Long.MIN_VALUE);
1027 Assert.assertEquals(StrictMath.min(Long.MIN_VALUE, Long.MAX_VALUE), Long.MIN_VALUE);
1032 Assert.assertEquals(StrictMath.max(0L, 0L), 0L);
1033 Assert.assertEquals(StrictMath.max(1L, 0L), 1L);
1034 Assert.assertEquals(StrictMath.max(0L, 1L), 1L);
1035 Assert.assertEquals(StrictMath.max(0L, Long.MAX_VALUE), Long.MAX_VALUE);
1036 Assert.assertEquals(StrictMath.max(Long.MIN_VALUE, 0L), 0L);
1037 Assert.assertEquals(StrictMath.max(Long.MIN_VALUE, Long.MAX_VALUE), Long.MAX_VALUE);
1042 Assert.assertTrue(Float.isNaN(StrictMath.min(1.0f, Float.NaN)));
1043 Assert.assertTrue(Float.isNaN(StrictMath.min(Float.NaN, 1.0f)));
1044 Assert.assertEquals(StrictMath.min(-0.0f, 0.0f), -0.0f);
1045 Assert.assertEquals(StrictMath.min(0.0f, -0.0f), -0.0f);
1046 Assert.assertEquals(StrictMath.min(-0.0f, -0.0f), -0.0f);
1047 Assert.assertEquals(StrictMath.min(0.0f, 0.0f), 0.0f);
1048 Assert.assertEquals(StrictMath.min(1.0f, 0.0f), 0.0f);
1049 Assert.assertEquals(StrictMath.min(0.0f, 1.0f), 0.0f);
1050 Assert.assertEquals(StrictMath.min(0.0f, Float.MAX_VALUE), 0.0f);
1051 Assert.assertEquals(StrictMath.min(Float.MIN_VALUE, 0.0f), 0.0f);
1052 Assert.assertEquals(StrictMath.min(Float.MIN_VALUE, Float.MAX_VALUE), Float.MIN_VALUE);
1057 Assert.assertTrue(Float.isNaN(StrictMath.max(1.0f, Float.NaN)));
1058 Assert.assertTrue(Float.isNaN(StrictMath.max(Float.NaN, 1.0f)));
1059 Assert.assertEquals(StrictMath.max(-0.0f, 0.0f), 0.0f);
1060 Assert.assertEquals(StrictMath.max(0.0f, -0.0f), 0.0f);
1061 Assert.assertEquals(StrictMath.max(-0.0f, -0.0f), -0.0f);
1062 Assert.assertEquals(StrictMath.max(0.0f, 0.0f), 0.0f);
1063 Assert.assertEquals(StrictMath.max(1.0f, 0.0f), 1.0f);
1064 Assert.assertEquals(StrictMath.max(0.0f, 1.0f), 1.0f);
1065 Assert.assertEquals(StrictMath.max(0.0f, Float.MAX_VALUE), Float.MAX_VALUE);
1066 Assert.assertEquals(StrictMath.max(Float.MIN_VALUE, 0.0f), Float.MIN_VALUE);
1067 Assert.assertEquals(StrictMath.max(Float.MIN_VALUE, Float.MAX_VALUE), Float.MAX_VALUE);
1072 Assert.assertTrue(Double.isNaN(StrictMath.min(1.0d, Double.NaN)));
1073 Assert.assertTrue(Double.isNaN(StrictMath.min(Double.NaN, 1.0d)));
1074 Assert.assertEquals(StrictMath.min(-0.0d, 0.0d), -0.0d);
1075 Assert.assertEquals(StrictMath.min(0.0d, -0.0d), -0.0d);
1076 Assert.assertEquals(StrictMath.min(-0.0d, -0.0d), -0.0d);
1077 Assert.assertEquals(StrictMath.min(0.0d, 0.0d), 0.0d);
1078 Assert.assertEquals(StrictMath.min(1.0d, 0.0d), 0.0d);
1079 Assert.assertEquals(StrictMath.min(0.0d, 1.0d), 0.0d);
1080 Assert.assertEquals(StrictMath.min(0.0d, Double.MAX_VALUE), 0.0d);
1081 Assert.assertEquals(StrictMath.min(Double.MIN_VALUE, 0.0d), 0.0d);
1082 Assert.assertEquals(StrictMath.min(Double.MIN_VALUE, Double.MAX_VALUE), Double.MIN_VALUE);
1087 Assert.assertTrue(Double.isNaN(StrictMath.max(1.0d, Double.NaN)));
1088 Assert.assertTrue(Double.isNaN(StrictMath.max(Double.NaN, 1.0d)));
1089 Assert.assertEquals(StrictMath.max(-0.0d, 0.0d), 0.0d);
1090 Assert.assertEquals(StrictMath.max(0.0d, -0.0d), 0.0d);
1091 Assert.assertEquals(StrictMath.max(-0.0d, -0.0d), -0.0d);
1092 Assert.assertEquals(StrictMath.max(0.0d, 0.0d), 0.0d);
1093 Assert.assertEquals(StrictMath.max(1.0d, 0.0d), 1.0d);
1094 Assert.assertEquals(StrictMath.max(0.0d, 1.0d), 1.0d);
1095 Assert.assertEquals(StrictMath.max(0.0d, Double.MAX_VALUE), Double.MAX_VALUE);
1096 Assert.assertEquals(StrictMath.max(Double.MIN_VALUE, 0.0d), Double.MIN_VALUE);
1097 Assert.assertEquals(StrictMath.max(Double.MIN_VALUE, Double.MAX_VALUE), Double.MAX_VALUE);
1102 Assert.assertEquals(StrictMath.sqrt(+4.0), +2.0d, 0.0);
1103 Assert.assertEquals(StrictMath.sqrt(+49.0), +7.0d, 0.0);
1104 Assert.assertEquals(StrictMath.sqrt(+1.44), +1.2d, 0.0);
1109 Assert.assertEquals(StrictMath.ceil(+0.0), +0.0d, 0.0);
1110 Assert.assertEquals(StrictMath.ceil(-0.0), -0.0d, 0.0);
1111 Assert.assertEquals(StrictMath.ceil(-0.9), -0.0d, 0.0);
1112 Assert.assertEquals(StrictMath.ceil(-0.5), -0.0d, 0.0);
1113 Assert.assertEquals(StrictMath.ceil(0.0), -0.0d, 0.0);
1114 Assert.assertEquals(StrictMath.ceil(+2.0), +2.0d, 0.0);
1115 Assert.assertEquals(StrictMath.ceil(+2.1), +3.0d, 0.0);
1116 Assert.assertEquals(StrictMath.ceil(+2.5), +3.0d, 0.0);
1117 Assert.assertEquals(StrictMath.ceil(+2.9), +3.0d, 0.0);
1118 Assert.assertEquals(StrictMath.ceil(+3.0), +3.0d, 0.0);
1119 Assert.assertEquals(StrictMath.ceil(-2.0), -2.0d, 0.0);
1120 Assert.assertEquals(StrictMath.ceil(-2.1), -2.0d, 0.0);
1121 Assert.assertEquals(StrictMath.ceil(-2.5), -2.0d, 0.0);
1122 Assert.assertEquals(StrictMath.ceil(-2.9), -2.0d, 0.0);
1123 Assert.assertEquals(StrictMath.ceil(-3.0), -3.0d, 0.0);
1124 Assert.assertEquals(StrictMath.ceil(Double.NaN), Double.NaN, 0.0);
1125 Assert.assertEquals(StrictMath.ceil(Double.POSITIVE_INFINITY), Double.POSITIVE_INFINITY, 0.0);
1126 Assert.assertEquals(StrictMath.ceil(Double.NEGATIVE_INFINITY), Double.NEGATIVE_INFINITY, 0.0);
1131 Assert.assertEquals(StrictMath.floor(+0.0), +0.0d, 0.0);
1132 Assert.assertEquals(StrictMath.floor(-0.0), -0.0d, 0.0);
1133 Assert.assertEquals(StrictMath.floor(+2.0), +2.0d, 0.0);
1134 Assert.assertEquals(StrictMath.floor(+2.1), +2.0d, 0.0);
1135 Assert.assertEquals(StrictMath.floor(+2.5), +2.0d, 0.0);
1136 Assert.assertEquals(StrictMath.floor(+2.9), +2.0d, 0.0);
1137 Assert.assertEquals(StrictMath.floor(+3.0), +3.0d, 0.0);
1138 Assert.assertEquals(StrictMath.floor(-2.0), -2.0d, 0.0);
1139 Assert.assertEquals(StrictMath.floor(-2.1), -3.0d, 0.0);
1140 Assert.assertEquals(StrictMath.floor(-2.5), -3.0d, 0.0);
1141 Assert.assertEquals(StrictMath.floor(-2.9), -3.0d, 0.0);
1142 Assert.assertEquals(StrictMath.floor(-3.0), -3.0d, 0.0);
1143 Assert.assertEquals(StrictMath.floor(Double.NaN), Double.NaN, 0.0);
1144 Assert.assertEquals(StrictMath.floor(Double.POSITIVE_INFINITY), Double.POSITIVE_INFINITY, 0.0);
1145 Assert.assertEquals(StrictMath.floor(Double.NEGATIVE_INFINITY), Double.NEGATIVE_INFINITY, 0.0);
1150 Assert.assertEquals(StrictMath.rint(+0.0), +0.0d, 0.0);
1151 Assert.assertEquals(StrictMath.rint(-0.0), -0.0d, 0.0);
1152 Assert.assertEquals(StrictMath.rint(+2.0), +2.0d, 0.0);
1153 Assert.assertEquals(StrictMath.rint(+2.1), +2.0d, 0.0);
1154 Assert.assertEquals(StrictMath.rint(+2.5), +2.0d, 0.0);
1155 Assert.assertEquals(StrictMath.rint(+2.9), +3.0d, 0.0);
1156 Assert.assertEquals(StrictMath.rint(+3.0), +3.0d, 0.0);
1157 Assert.assertEquals(StrictMath.rint(-2.0), -2.0d, 0.0);
1158 Assert.assertEquals(StrictMath.rint(-2.1), -2.0d, 0.0);
1159 Assert.assertEquals(StrictMath.rint(-2.5), -2.0d, 0.0);
1160 Assert.assertEquals(StrictMath.rint(-2.9), -3.0d, 0.0);
1161 Assert.assertEquals(StrictMath.rint(-3.0), -3.0d, 0.0);
1162 Assert.assertEquals(StrictMath.rint(Double.NaN), Double.NaN, 0.0);
1163 Assert.assertEquals(StrictMath.rint(Double.POSITIVE_INFINITY), Double.POSITIVE_INFINITY, 0.0);
1164 Assert.assertEquals(StrictMath.rint(Double.NEGATIVE_INFINITY), Double.NEGATIVE_INFINITY, 0.0);
1169 Assert.assertEquals(StrictMath.round(+0.0d), (long)+0.0);
1170 Assert.assertEquals(StrictMath.round(-0.0d), (long)+0.0);
1171 Assert.assertEquals(StrictMath.round(2.0d), 2l);
1172 Assert.assertEquals(StrictMath.round(2.1d), 2l);
1173 Assert.assertEquals(StrictMath.round(2.5d), 3l);
1174 Assert.assertEquals(StrictMath.round(2.9d), 3l);
1175 Assert.assertEquals(StrictMath.round(3.0d), 3l);
1176 Assert.assertEquals(StrictMath.round(-2.0d), -2l);
1177 Assert.assertEquals(StrictMath.round(-2.1d), -2l);
1178 Assert.assertEquals(StrictMath.round(-2.5d), -2l);
1179 Assert.assertEquals(StrictMath.round(-2.9d), -3l);
1180 Assert.assertEquals(StrictMath.round(-3.0d), -3l);
1181 Assert.assertEquals(StrictMath.round(0.49999999999999994d), 0l);
1182 Assert.assertEquals(StrictMath.round(4503599627370495.0d), 4503599627370495l); // 2^52 - 1
1183 Assert.assertEquals(StrictMath.round(4503599627370495.5d), 4503599627370496l); // 2^52 - 0.5
1184 Assert.assertEquals(StrictMath.round(4503599627370496.0d), 4503599627370496l); // 2^52
1185 Assert.assertEquals(StrictMath.round(-4503599627370495.0d), -4503599627370495l); // -(2^52 - 1)
1186Assert.assertEquals(StrictMath.round(-4503599627370495.5d), -4503599627370495l); // -(2^52 - 0.5)
1187 Assert.assertEquals(StrictMath.round(-4503599627370496.0d), -4503599627370496l); // -2^52
1188 Assert.assertEquals(StrictMath.round(9007199254740991.0d), 9007199254740991l); // 2^53 - 1
1189 Assert.assertEquals(StrictMath.round(-9007199254740991.0d), -9007199254740991l); // -(2^53 - 1)
1190 Assert.assertEquals(StrictMath.round(Double.NaN), (long)+0.0d);
1191 Assert.assertEquals(StrictMath.round(Long.MAX_VALUE + 1.0d), Long.MAX_VALUE);
1192 Assert.assertEquals(StrictMath.round(Long.MIN_VALUE - 1.0d), Long.MIN_VALUE);
1193 Assert.assertEquals(StrictMath.round(Double.longBitsToDouble(0x43F0000000000000l)),
1195 Assert.assertEquals(StrictMath.round(Double.longBitsToDouble(0xC3F0000000000000l)),
1197 Assert.assertEquals(StrictMath.round(Double.POSITIVE_INFINITY), Long.MAX_VALUE);
1198 Assert.assertEquals(StrictMath.round(Double.NEGATIVE_INFINITY), Long.MIN_VALUE);
1203 Assert.assertEquals(StrictMath.round(+0.0f), (int)+0.0);
1204 Assert.assertEquals(StrictMath.round(-0.0f), (int)+0.0);
1205 Assert.assertEquals(StrictMath.round(2.0f), 2);
1206 Assert.assertEquals(StrictMath.round(2.1f), 2);
1207 Assert.assertEquals(StrictMath.round(2.5f), 3);
1208 Assert.assertEquals(StrictMath.round(2.9f), 3);
1209 Assert.assertEquals(StrictMath.round(3.0f), 3);
1210 Assert.assertEquals(StrictMath.round(-2.0f), -2);
1211 Assert.assertEquals(StrictMath.round(-2.1f), -2);
1212 Assert.assertEquals(StrictMath.round(-2.5f), -2);
1213 Assert.assertEquals(StrictMath.round(-2.9f), -3);
1214 Assert.assertEquals(StrictMath.round(-3.0f), -3);
1216 Assert.assertEquals(StrictMath.round(Float.intBitsToFloat(0x3EFFFFFF)), (int)+0.0f);
1217 Assert.assertEquals(StrictMath.round(8388607.0f), 8388607); // 2^23 - 1
1218 Assert.assertEquals(StrictMath.round(8388607.5f), 8388608); // 2^23 - 0.5
1219 Assert.assertEquals(StrictMath.round(8388608.0f), 8388608); // 2^23
1220 Assert.assertEquals(StrictMath.round(-8388607.0f), -8388607); // -(2^23 - 1)
1221 Assert.assertEquals(StrictMath.round(-8388607.5f), -8388607); // -(2^23 - 0.5)
1222 Assert.assertEquals(StrictMath.round(-8388608.0f), -8388608); // -2^23
1223 Assert.assertEquals(StrictMath.round(16777215.0f), 16777215); // 2^24 - 1
1224 Assert.assertEquals(StrictMath.round(16777216.0f), 16777216); // 2^24
1225 Assert.assertEquals(StrictMath.round(-16777215.0f), -16777215); // -(2^24 - 1)
1226 Assert.assertEquals(StrictMath.round(-16777216.0f), -16777216); // -2^24
1227 Assert.assertEquals(StrictMath.round(Float.NaN), (int)+0.0f);
1228 Assert.assertEquals(StrictMath.round(Integer.MAX_VALUE + 1.0f), Integer.MAX_VALUE);
1229 Assert.assertEquals(StrictMath.round(Integer.MIN_VALUE - 1.0f), Integer.MIN_VALUE);
1230 Assert.assertEquals(StrictMath.round(Float.intBitsToFloat(0x4F800000)),
1232 Assert.assertEquals(StrictMath.round(Float.intBitsToFloat(0xCF800000)),
1234 Assert.assertEquals(StrictMath.round(Float.POSITIVE_INFINITY), Integer.MAX_VALUE);
1235 Assert.assertEquals(StrictMath.round(Float.NEGATIVE_INFINITY), Integer.MIN_VALUE);
1240 Assert.assertEquals(Float.floatToRawIntBits(-1.0f), 0xbf800000);
1241 Assert.assertEquals(Float.floatToRawIntBits(0.0f), 0);
1242 Assert.assertEquals(Float.floatToRawIntBits(1.0f), 0x3f800000);
1243 Assert.assertEquals(Float.floatToRawIntBits(Float.NaN), 0x7fc00000);
1244 Assert.assertEquals(Float.floatToRawIntBits(Float.POSITIVE_INFINITY), 0x7f800000);
1245 Assert.assertEquals(Float.floatToRawIntBits(Float.NEGATIVE_INFINITY), 0xff800000);
1250 Assert.assertEquals(Float.intBitsToFloat(0xbf800000), -1.0f);
1251 Assert.assertEquals(Float.intBitsToFloat(0x00000000), 0.0f);
1252 Assert.assertEquals(Float.intBitsToFloat(0x3f800000), 1.0f);
1253 Assert.assertEquals(Float.intBitsToFloat(0x7fc00000), Float.NaN);
1254 Assert.assertEquals(Float.intBitsToFloat(0x7f800000), Float.POSITIVE_INFINITY);
1255 Assert.assertEquals(Float.intBitsToFloat(0xff800000), Float.NEGATIVE_INFINITY);
1260 Assert.assertEquals(Double.doubleToRawLongBits(-1.0), 0xbff0000000000000L);
1261 Assert.assertEquals(Double.doubleToRawLongBits(0.0), 0x0000000000000000L);
1262 Assert.assertEquals(Double.doubleToRawLongBits(1.0), 0x3ff0000000000000L);
1263 Assert.assertEquals(Double.doubleToRawLongBits(Double.NaN), 0x7ff8000000000000L);
1264 Assert.assertEquals(Double.doubleToRawLongBits(Double.POSITIVE_INFINITY), 0x7ff0000000000000L);
1265 Assert.assertEquals(Double.doubleToRawLongBits(Double.NEGATIVE_INFINITY), 0xfff0000000000000L);
1270 Assert.assertEquals(Double.longBitsToDouble(0xbff0000000000000L), -1.0);
1271 Assert.assertEquals(Double.longBitsToDouble(0x0000000000000000L), 0.0);
1272 Assert.assertEquals(Double.longBitsToDouble(0x3ff0000000000000L), 1.0);
1273 Assert.assertEquals(Double.longBitsToDouble(0x7ff8000000000000L), Double.NaN);
1274 Assert.assertEquals(Double.longBitsToDouble(0x7ff0000000000000L), Double.POSITIVE_INFINITY);
1275 Assert.assertEquals(Double.longBitsToDouble(0xfff0000000000000L), Double.NEGATIVE_INFINITY);
1280 Assert.assertEquals(Short.reverseBytes((short)0x0000), (short)0x0000);
1281 Assert.assertEquals(Short.reverseBytes((short)0xffff), (short)0xffff);
1282 Assert.assertEquals(Short.reverseBytes((short)0x8000), (short)0x0080);
1283 Assert.assertEquals(Short.reverseBytes((short)0x0080), (short)0x8000);
1284 Assert.assertEquals(Short.reverseBytes((short)0x0123), (short)0x2301);
1285 Assert.assertEquals(Short.reverseBytes((short)0x4567), (short)0x6745);
1286 Assert.assertEquals(Short.reverseBytes((short)0x89ab), (short)0xab89);
1287 Assert.assertEquals(Short.reverseBytes((short)0xcdef), (short)0xefcd);
1292 Assert.assertEquals(Integer.reverseBytes(0x00000000), 0x00000000);
1293 Assert.assertEquals(Integer.reverseBytes(0xffffffff), 0xffffffff);
1294 Assert.assertEquals(Integer.reverseBytes(0x80000000), 0x00000080);
1295 Assert.assertEquals(Integer.reverseBytes(0x00000080), 0x80000000);
1296 Assert.assertEquals(Integer.reverseBytes(0x01234567), 0x67452301);
1297 Assert.assertEquals(Integer.reverseBytes(0x89abcdef), 0xefcdab89);
1302 Assert.assertEquals(Long.reverseBytes(0x0000000000000000L), 0x0000000000000000L);
1303 Assert.assertEquals(Long.reverseBytes(0xffffffffffffffffL), 0xffffffffffffffffL);
1304 Assert.assertEquals(Long.reverseBytes(0x8000000000000000L), 0x0000000000000080L);
1305 Assert.assertEquals(Long.reverseBytes(0x0000000000000080L), 0x8000000000000000L);
1306 Assert.assertEquals(Long.reverseBytes(0x0123456789abcdefL), 0xefcdab8967452301L);
1311 Assert.assertEquals(Integer.reverse(1), 0x80000000);
1312 Assert.assertEquals(Integer.reverse(-1), 0xffffffff);
1313 Assert.assertEquals(Integer.reverse(0), 0);
1314 Assert.assertEquals(Integer.reverse(0x12345678), 0x1e6a2c48);
1315 Assert.assertEquals(Integer.reverse(0x87654321), 0x84c2a6e1);
1316 Assert.assertEquals(Integer.reverse(Integer.MAX_VALUE), 0xfffffffe);
1317 Assert.assertEquals(Integer.reverse(Integer.MIN_VALUE), 1);
1322 Assert.assertEquals(Long.reverse(1L), 0x8000000000000000L);
1323 Assert.assertEquals(Long.reverse(-1L), 0xffffffffffffffffL);
1324 Assert.assertEquals(Long.reverse(0L), 0L);
1325 Assert.assertEquals(Long.reverse(0x1234567812345678L), 0x1e6a2c481e6a2c48L);
1326 Assert.assertEquals(Long.reverse(0x8765432187654321L), 0x84c2a6e184c2a6e1L);
1327 Assert.assertEquals(Long.reverse(Long.MAX_VALUE), 0xfffffffffffffffeL);
1328 Assert.assertEquals(Long.reverse(Long.MIN_VALUE), 1L);
1330 Assert.assertEquals(test_Long_reverse_b22324327(0xaaaaaaaaaaaaaaaaL, 0x5555555555555555L),
1380 Assert.assertEquals(Integer.numberOfLeadingZeros(0), Integer.SIZE);
1381 Assert.assertEquals(Integer.numberOfLeadingZeros(1), Integer.SIZE - 1);
1382 Assert.assertEquals(Integer.numberOfLeadingZeros(1 << (Integer.SIZE-1)), 0);
1383 Assert.assertEquals(Integer.numberOfLeadingZeros($noinline$return_int_zero()), Integer.SIZE);
1385 Assert.assertEquals(Integer.numberOfLeadingZeros(1 << i), Integer.SIZE - 1 - i);
1386 Assert.assertEquals(Integer.numberOfLeadingZeros((1 << i) | 1), Integer.SIZE - 1 - i);
1387 Assert.assertEquals(Integer.numberOfLeadingZeros(0xFFFFFFFF >>> i), i);
1399 Assert.assertEquals(Long.numberOfLeadingZeros(0L), Long.SIZE);
1400 Assert.assertEquals(Long.numberOfLeadingZeros(1L), Long.SIZE - 1);
1401 Assert.assertEquals(Long.numberOfLeadingZeros(1L << ((Long.SIZE/2)-1)), Long.SIZE/2);
1402 Assert.assertEquals(Long.numberOfLeadingZeros(1L << (Long.SIZE-1)), 0);
1403 Assert.assertEquals(Long.numberOfLeadingZeros($noinline$return_long_zero()), Long.SIZE);
1405 Assert.assertEquals(Long.numberOfLeadingZeros(1L << i), Long.SIZE - 1 - i);
1406 Assert.assertEquals(Long.numberOfLeadingZeros((1L << i) | 1L), Long.SIZE - 1 - i);
1407 Assert.assertEquals(Long.numberOfLeadingZeros(0xFFFFFFFFFFFFFFFFL >>> i), i);
1446 Assert.assertEquals((byte)peek_byte.invoke(null, address), 0x12);
1447 Assert.assertEquals((byte)peek_byte.invoke(null, address + 1), 0x11);
1457 Assert.assertEquals((short)peek_short.invoke(null, address, false), 0x1213); // Aligned read
1458Assert.assertEquals((short)peek_short.invoke(null, address + 1, false), 0x1112); // Unaligned read
1470 Assert.assertEquals((int)peek_int.invoke(null, address, false), 0x12131415);
1471 Assert.assertEquals((int)peek_int.invoke(null, address + 1, false), 0x11121314);
1487 Assert.assertEquals((long)peek_long.invoke(null, address, false), 0x1213141516171819L);
1488 Assert.assertEquals((long)peek_long.invoke(null, address + 1, false), 0x1112131415161718L);
1497 Assert.assertTrue(Arrays.equals(r, b));
1509 Assert.assertTrue(Arrays.equals(ra, b));
1513 Assert.assertTrue(Arrays.equals(ru, b));
1524 Assert.assertTrue(Arrays.equals(ra, b));
1527 Assert.assertTrue(Arrays.equals(ru, b));
1538 Assert.assertTrue(Arrays.equals(ra, b));
1541 Assert.assertTrue(Arrays.equals(ru, b));
1545 Assert.assertEquals(Integer.numberOfTrailingZeros(0), Integer.SIZE);
1547 Assert.assertEquals(
1550 Assert.assertEquals(
1553 Assert.assertEquals(Integer.numberOfTrailingZeros(1 << i), i);
1558 Assert.assertEquals(Long.numberOfTrailingZeros(0), Long.SIZE);
1560 Assert.assertEquals(
1563 Assert.assertEquals(
1566 Assert.assertEquals(Long.numberOfTrailingZeros(1L << i), i);
1571 Assert.assertEquals(Integer.rotateRight(0x11, 0), 0x11);
1573 Assert.assertEquals(Integer.rotateRight(0x11, 1), 0x80000008);
1574 Assert.assertEquals(Integer.rotateRight(0x11, Integer.SIZE - 1), 0x22);
1575 Assert.assertEquals(Integer.rotateRight(0x11, Integer.SIZE), 0x11);
1576 Assert.assertEquals(Integer.rotateRight(0x11, Integer.SIZE + 1), 0x80000008);
1578 Assert.assertEquals(Integer.rotateRight(0x11, -1), 0x22);
1579 Assert.assertEquals(Integer.rotateRight(0x11, -(Integer.SIZE - 1)), 0x80000008);
1580 Assert.assertEquals(Integer.rotateRight(0x11, -Integer.SIZE), 0x11);
1581 Assert.assertEquals(Integer.rotateRight(0x11, -(Integer.SIZE + 1)), 0x22);
1583 Assert.assertEquals(Integer.rotateRight(0x80000000, 1), 0x40000000);
1586 Assert.assertEquals(
1593 Assert.assertEquals(Long.rotateRight(0x11, 0), 0x11);
1595 Assert.assertEquals(Long.rotateRight(0x11, 1), 0x8000000000000008L);
1596 Assert.assertEquals(Long.rotateRight(0x11, Long.SIZE - 1), 0x22);
1597 Assert.assertEquals(Long.rotateRight(0x11, Long.SIZE), 0x11);
1598 Assert.assertEquals(Long.rotateRight(0x11, Long.SIZE + 1), 0x8000000000000008L);
1600 Assert.assertEquals(Long.rotateRight(0x11, -1), 0x22);
1601 Assert.assertEquals(Long.rotateRight(0x11, -(Long.SIZE - 1)), 0x8000000000000008L);
1602 Assert.assertEquals(Long.rotateRight(0x11, -Long.SIZE), 0x11);
1603 Assert.assertEquals(Long.rotateRight(0x11, -(Long.SIZE + 1)), 0x22);
1605 Assert.assertEquals(Long.rotateRight(0x8000000000000000L, 1), 0x4000000000000000L);
1608 Assert.assertEquals(
1615 Assert.assertEquals(Integer.rotateLeft(0x11, 0), 0x11);
1617 Assert.assertEquals(Integer.rotateLeft(0x11, 1), 0x22);
1618 Assert.assertEquals(Integer.rotateLeft(0x11, Integer.SIZE - 1), 0x80000008);
1619 Assert.assertEquals(Integer.rotateLeft(0x11, Integer.SIZE), 0x11);
1620 Assert.assertEquals(Integer.rotateLeft(0x11, Integer.SIZE + 1), 0x22);
1622 Assert.assertEquals(Integer.rotateLeft(0x11, -1), 0x80000008);
1623 Assert.assertEquals(Integer.rotateLeft(0x11, -(Integer.SIZE - 1)), 0x22);
1624 Assert.assertEquals(Integer.rotateLeft(0x11, -Integer.SIZE), 0x11);
1625 Assert.assertEquals(Integer.rotateLeft(0x11, -(Integer.SIZE + 1)), 0x80000008);
1627 Assert.assertEquals(Integer.rotateLeft(0xC0000000, 1), 0x80000001);
1630 Assert.assertEquals(
1637 Assert.assertEquals(Long.rotateLeft(0x11, 0), 0x11);
1639 Assert.assertEquals(Long.rotateLeft(0x11, 1), 0x22);
1640 Assert.assertEquals(Long.rotateLeft(0x11, Long.SIZE - 1), 0x8000000000000008L);
1641 Assert.assertEquals(Long.rotateLeft(0x11, Long.SIZE), 0x11);
1642 Assert.assertEquals(Long.rotateLeft(0x11, Long.SIZE + 1), 0x22);
1644 Assert.assertEquals(Long.rotateLeft(0x11, -1), 0x8000000000000008L);
1645 Assert.assertEquals(Long.rotateLeft(0x11, -(Long.SIZE - 1)), 0x22);
1646 Assert.assertEquals(Long.rotateLeft(0x11, -Long.SIZE), 0x11);
1647 Assert.assertEquals(Long.rotateLeft(0x11, -(Long.SIZE + 1)), 0x8000000000000008L);
1649 Assert.assertEquals(Long.rotateLeft(0xC000000000000000L, 1), 0x8000000000000001L);
1652 Assert.assertEquals(
1660 Assert.assertEquals(Integer.rotateLeft(0xBBAAAADD, i),
1662 Assert.assertEquals(Integer.rotateLeft(0xBBAAAADD, -i),
1669 Assert.assertEquals(Long.rotateLeft(0xBBAAAADDFF0000DDL, i),
1671 Assert.assertEquals(Long.rotateLeft(0xBBAAAADDFF0000DDL, -i),