Lines Matching refs:abs
464 Math.abs(-1);
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);
475 Math.abs(-1L);
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);
980 StrictMath.abs(-1);
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);
991 StrictMath.abs(-1L);
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);