/libcore/luni/src/test/java/libcore/libcore/util/ |
D | FP16Test.java | 36 assertEquals(NEGATIVE_INFINITY, toHalf(Float.NEGATIVE_INFINITY)); in testSingleToHalf() 59 assertEquals(NEGATIVE_INFINITY, toHalf(-65520.0f)); in testSingleToHalf() 75 assertEquals(Float.NEGATIVE_INFINITY, toFloat(toHalf(Float.NEGATIVE_INFINITY)), 0.0f); in testHalfToSingle() 92 assertEquals("-Infinity", toHexString(NEGATIVE_INFINITY)); in testHexString() 109 assertTrue(FP16.isInfinite(NEGATIVE_INFINITY)); in testIsInfinite() 121 assertFalse(FP16.isNaN(NEGATIVE_INFINITY)); in testIsNaN() 137 assertFalse(FP16.isNormalized(NEGATIVE_INFINITY)); in testIsNormalized() 155 assertEquals(NEGATIVE_INFINITY, FP16.ceil(NEGATIVE_INFINITY)); in testCeil() 181 assertTrue(FP16.equals(NEGATIVE_INFINITY, NEGATIVE_INFINITY)); in testEquals() 195 assertEquals(NEGATIVE_INFINITY, FP16.floor(NEGATIVE_INFINITY)); in testFloor() [all …]
|
/libcore/ojluni/src/test/java/util/stream/ |
D | TestDoubleSumAverage.java | 103 testCases.put(() -> DoubleStream.of(-MAX_VALUE, -MAX_VALUE), NEGATIVE_INFINITY); in testNonfiniteSum() 110 testCases.put(() -> DoubleStream.of(1.0d, NEGATIVE_INFINITY, 1.0d), NEGATIVE_INFINITY); in testNonfiniteSum() 111 testCases.put(() -> DoubleStream.of(NEGATIVE_INFINITY), NEGATIVE_INFINITY); in testNonfiniteSum() local 112 … testCases.put(() -> DoubleStream.of(NEGATIVE_INFINITY, NEGATIVE_INFINITY), NEGATIVE_INFINITY); in testNonfiniteSum() local 113 …testCases.put(() -> DoubleStream.of(NEGATIVE_INFINITY, NEGATIVE_INFINITY, 0.0), NEGATIVE_INFINITY); in testNonfiniteSum() local 117 testCases.put(() -> DoubleStream.of(1.0d, NEGATIVE_INFINITY, POSITIVE_INFINITY, 1.0d), NaN); in testNonfiniteSum() 118 testCases.put(() -> DoubleStream.of(1.0d, POSITIVE_INFINITY, NEGATIVE_INFINITY, 1.0d), NaN); in testNonfiniteSum() 120 testCases.put(() -> DoubleStream.of(NEGATIVE_INFINITY, NaN), NaN); in testNonfiniteSum() 122 testCases.put(() -> DoubleStream.of(NaN, NEGATIVE_INFINITY), NaN); in testNonfiniteSum()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | MathTest.java | 125 assertEquals(Double.NEGATIVE_INFINITY, Math.cbrt(Double.NEGATIVE_INFINITY), 0D); in test_cbrt_D() 160 Double.NEGATIVE_INFINITY }; 232 Float.NEGATIVE_INFINITY }; 313 Double.POSITIVE_INFINITY, Math.cosh(Double.NEGATIVE_INFINITY), 0D); in test_cosh_D() 354 .expm1(Double.NEGATIVE_INFINITY), 0D); in test_expm1_D() 400 … Double.toString(Double.NEGATIVE_INFINITY), Double.toString(Math.floor(Double.NEGATIVE_INFINITY))); in test_floorD() 407 Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY, 453 Float.POSITIVE_INFINITY, Float.NEGATIVE_INFINITY, Float.MAX_VALUE, 501 Double.POSITIVE_INFINITY, Math.hypot(Double.NEGATIVE_INFINITY, in test_hypot_DD() 508 Double.NEGATIVE_INFINITY), 0D); in test_hypot_DD() [all …]
|
D | StrictMathTest.java | 136 Double.NEGATIVE_INFINITY, StrictMath in test_cbrt_D() 137 .cbrt(Double.NEGATIVE_INFINITY)); in test_cbrt_D() 330 .cosh(Double.NEGATIVE_INFINITY)); in test_cosh_D() 373 .expm1(Double.NEGATIVE_INFINITY)); in test_expm1_D() 457 Double.POSITIVE_INFINITY, StrictMath.hypot(Double.NEGATIVE_INFINITY, in test_hypot_DD() 464 Double.NEGATIVE_INFINITY)); in test_hypot_DD() 467 Double.NEGATIVE_INFINITY)); in test_hypot_DD() 469 Double.POSITIVE_INFINITY, StrictMath.hypot(Double.NEGATIVE_INFINITY, in test_hypot_DD() 529 Double.NEGATIVE_INFINITY, StrictMath.log10(0.0)); in test_log10_D() 531 Double.NEGATIVE_INFINITY, StrictMath.log10(+0.0)); in test_log10_D() [all …]
|
D | FloatTest.java | 132 float[] values = new float[] { Float.NEGATIVE_INFINITY, -Float.MAX_VALUE, -2f, in test_compare() 246 Float.NEGATIVE_INFINITY).isInfinite()) in test_isInfinite() 256 assertTrue(Float.isInfinite(Float.NEGATIVE_INFINITY)); in test_isInfiniteF() 269 assertFalse(Float.isFinite(Float.NEGATIVE_INFINITY)); in test_isFiniteF() 926 assertTrue("Floattest7", negInfiniteSigned.equals(new Float(Float.NEGATIVE_INFINITY))); in test_valueOfLjava_lang_String() 954 float[] values = new float[] { Float.NEGATIVE_INFINITY, -Float.MAX_VALUE, -2f, in test_compareToLjava_lang_Float() 1033 assertEquals("-Infinity", Float.toHexString(Float.NEGATIVE_INFINITY)); in test_toHexStringF()
|
D | DoubleTest.java | 248 double[] values = new double[] { Double.NEGATIVE_INFINITY, -Double.MAX_VALUE, -2d, in test_compare() 349 assertTrue("NEGATIVE_INFINITY returned false", new Double(Double.NEGATIVE_INFINITY) in test_isInfinite() 361 assertTrue(Double.isInfinite(Double.NEGATIVE_INFINITY)); in test_isInfiniteD() 374 assertFalse(Double.isFinite(Double.NEGATIVE_INFINITY)); in test_isFiniteD() 1317 .equals(new Double(Double.NEGATIVE_INFINITY))); in test_valueOfLjava_lang_String() 1326 double[] values = new double[] { Double.NEGATIVE_INFINITY, -Double.MAX_VALUE, -2d, in test_compareToLjava_lang_Double() 1403 assertEquals("-Infinity", Double.toHexString(Double.NEGATIVE_INFINITY)); in test_toHexStringF()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldAndroidStrictMathTest.java | 101 Double.NEGATIVE_INFINITY, StrictMath in testCbrtD() 102 .cbrt(Double.NEGATIVE_INFINITY)); in testCbrtD() 157 .cosh(Double.NEGATIVE_INFINITY)); in testCosh_D() 194 .expm1(Double.NEGATIVE_INFINITY)); in testExpm1D() 231 Double.POSITIVE_INFINITY, StrictMath.hypot(Double.NEGATIVE_INFINITY, in testHypotDD() 238 Double.NEGATIVE_INFINITY)); in testHypotDD() 241 Double.NEGATIVE_INFINITY)); in testHypotDD() 243 Double.POSITIVE_INFINITY, StrictMath.hypot(Double.NEGATIVE_INFINITY, in testHypotDD() 294 Double.NEGATIVE_INFINITY, StrictMath.log10(0.0)); in testLog10D() 296 Double.NEGATIVE_INFINITY, StrictMath.log10(+0.0)); in testLog10D() [all …]
|
D | OldDoubleTest.java | 35 assertEquals(0xfff0000000000000L, Double.doubleToLongBits(Double.NEGATIVE_INFINITY)); in test_doubleToLongBitsD() 41 assertEquals(0xfff0000000000000L, Double.doubleToLongBits(Double.NEGATIVE_INFINITY)); in test_doubleToRawLongBitsD() 46 assertEquals(Double.NEGATIVE_INFINITY, new Double("-1.7976931348623159E308").doubleValue()); in test_doubleValue() 53 assertEquals(Float.NEGATIVE_INFINITY, new Double("-3.4028236E38").floatValue()); in test_floatValue()
|
D | OldAndroidMathTest.java | 110 assertEquals("wrong atan(-INF)", -PI / 2, Math.atan(Double.NEGATIVE_INFINITY), 0); in testAtanD() 161 Double.NEGATIVE_INFINITY, Math in testCbrtD() 162 .cbrt(Double.NEGATIVE_INFINITY), 0D); in testCbrtD() 205 Double.POSITIVE_INFINITY, Math.cosh(Double.NEGATIVE_INFINITY), 0D); in testCoshD() 240 .expm1(Double.NEGATIVE_INFINITY), 0D); in testExpm1D() 275 Double.POSITIVE_INFINITY, Math.hypot(Double.NEGATIVE_INFINITY, in testHypotDD() 282 Double.NEGATIVE_INFINITY), 0D); in testHypotDD() 285 Double.NEGATIVE_INFINITY), 0D); in testHypotDD() 287 Double.POSITIVE_INFINITY, Math.hypot(Double.NEGATIVE_INFINITY, in testHypotDD() 330 assertEquals(Double.NEGATIVE_INFINITY, Math.log10(0.0)); in testLog10D() [all …]
|
D | OldFloatTest.java | 53 assertEquals(0xff800000, Float.floatToIntBits(Float.NEGATIVE_INFINITY)); in test_floatToIntBitsF() 59 assertEquals(0xff800000, Float.floatToRawIntBits(Float.NEGATIVE_INFINITY)); in test_floatToRawIntBitsF() 69 assertEquals(Float.NEGATIVE_INFINITY, Float.intBitsToFloat(0xff800000)); in test_intBitsToFloatI()
|
D | DoubleTest.java | 50 assertEquals(Double.NEGATIVE_INFINITY, Double.parseDouble("-Infinity")); in testNamedDoubles() 106 assertEquals(Double.NEGATIVE_INFINITY, Double.parseDouble("-1.0e+309")); in testExponentParsing() 109 assertEquals(Double.NEGATIVE_INFINITY, Double.parseDouble("-1.0e+9999999999")); in testExponentParsing()
|
D | FloatTest.java | 52 assertEquals(Float.NEGATIVE_INFINITY, Float.parseFloat("-Infinity")); in testNamedFloats() 106 assertEquals(Float.NEGATIVE_INFINITY, Float.parseFloat("-1.0e+39")); in testExponentParsing() 109 assertEquals(Float.NEGATIVE_INFINITY, Float.parseFloat("-1.0e+9999999999")); in testExponentParsing()
|
D | OldAndroidFloatDoubleTest.java | 44 float nzero = 1.0f / Float.NEGATIVE_INFINITY; in testFloat() 99 double nzero = 1.0 / Double.NEGATIVE_INFINITY; in testDouble()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | FormatterTest.java | 2807 { Float.NEGATIVE_INFINITY, "%e", "-Infinity" }, in test_formatLjava_lang_String$Ljava_lang_Object_FloatConversionE() 2808 { Float.NEGATIVE_INFINITY, "%#.0e", "-Infinity" }, in test_formatLjava_lang_String$Ljava_lang_Object_FloatConversionE() 2809 { Float.NEGATIVE_INFINITY, "%#- (9.8e", "(Infinity)" }, in test_formatLjava_lang_String$Ljava_lang_Object_FloatConversionE() 2810 { Float.NEGATIVE_INFINITY, "%#+0(8.4e", "(Infinity)" }, in test_formatLjava_lang_String$Ljava_lang_Object_FloatConversionE() 2811 { Float.NEGATIVE_INFINITY, "%-+(1.6e", "(Infinity)" }, in test_formatLjava_lang_String$Ljava_lang_Object_FloatConversionE() 2812 { Float.NEGATIVE_INFINITY, "% 0(12e", " (Infinity)" }, in test_formatLjava_lang_String$Ljava_lang_Object_FloatConversionE() 2814 { Float.NEGATIVE_INFINITY, "%e", "-Infinity" }, in test_formatLjava_lang_String$Ljava_lang_Object_FloatConversionE() 2815 { Float.NEGATIVE_INFINITY, "%#.0e", "-Infinity" }, in test_formatLjava_lang_String$Ljava_lang_Object_FloatConversionE() 2816 { Float.NEGATIVE_INFINITY, "%#- (9.8e", "(Infinity)" }, in test_formatLjava_lang_String$Ljava_lang_Object_FloatConversionE() 2817 { Float.NEGATIVE_INFINITY, "%#+0(8.4e", "(Infinity)" }, in test_formatLjava_lang_String$Ljava_lang_Object_FloatConversionE() [all …]
|
D | Arrays2Test.java | 38 double[] specials = new double[] { Double.NEGATIVE_INFINITY, in test_binarySearch$DD() 58 float[] specials = new float[] { Float.NEGATIVE_INFINITY, in test_binarySearch$FF() 133 … Double.MAX_VALUE, Double.MIN_VALUE, 0d, -0d, Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY }; in test_sort$D() 134 …pecials2 = new double[] { 0d, Double.POSITIVE_INFINITY, -0d, Double.NEGATIVE_INFINITY, Double.MIN_… in test_sort$D() 135 …double[] answer = new double[] { Double.NEGATIVE_INFINITY, -0d, 0d, Double.MIN_VALUE, Double.MAX_V… in test_sort$D() 169 …NaN, Float.MAX_VALUE, Float.MIN_VALUE, 0f, -0f, Float.POSITIVE_INFINITY, Float.NEGATIVE_INFINITY }; in test_sort$F() 170 …float[] specials2 = new float[] { 0f, Float.POSITIVE_INFINITY, -0f, Float.NEGATIVE_INFINITY, Float… in test_sort$F() 171 …float[] answer = new float[] { Float.NEGATIVE_INFINITY, -0f, 0f, Float.MIN_VALUE, Float.MAX_VALUE,… in test_sort$F()
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | DoubleConsts.java | 42 public static final double NEGATIVE_INFINITY = java.lang.Double.NEGATIVE_INFINITY; field in DoubleConsts
|
D | FloatConsts.java | 42 public static final float NEGATIVE_INFINITY = java.lang.Float.NEGATIVE_INFINITY; field in FloatConsts
|
/libcore/luni/src/test/java/libcore/java/util/function/ |
D | DoubleUnaryOperatorTest.java | 30 assertEquals(Double.NEGATIVE_INFINITY, in testIdentity() 31 DoubleUnaryOperator.identity().applyAsDouble(Double.NEGATIVE_INFINITY)); in testIdentity()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | BigIntegerConvertTest.java | 241 assertTrue(aNumber == Double.NEGATIVE_INFINITY); in testDoubleValueNegativeInfinity1() 262 assertTrue(aNumber == Double.NEGATIVE_INFINITY); in testDoubleValueNegativeInfinity2() 492 assertTrue(aNumber == Float.NEGATIVE_INFINITY); in testFloatValueNegativeInfinity1() 505 assertTrue(aNumber == Float.NEGATIVE_INFINITY); in testFloatValueNegativeInfinity2() 530 assertTrue(aNumber == Float.NEGATIVE_INFINITY); in testFloatValueNegMantissaIsZero()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Float.java | 62 public static final float NEGATIVE_INFINITY = -1.0f / 0.0f; field in Float 475 return (v == POSITIVE_INFINITY) || (v == NEGATIVE_INFINITY); in isInfinite()
|
D | Double.java | 62 public static final double NEGATIVE_INFINITY = -1.0 / 0.0; field in Double 562 return (v == POSITIVE_INFINITY) || (v == NEGATIVE_INFINITY); in isInfinite()
|
/libcore/ojluni/src/main/java/java/text/ |
D | ChoiceFormat.java | 209 startValue = Double.NEGATIVE_INFINITY; in applyPattern() 218 startValue != Double.NEGATIVE_INFINITY) { in applyPattern() 281 } else if (choiceLimits[i] == Double.NEGATIVE_INFINITY) { in toPattern()
|
/libcore/ojluni/src/main/java/java/util/ |
D | DoubleSummaryStatistics.java | 69 private double max = Double.NEGATIVE_INFINITY;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | ChoiceFormatTest.java | 51 formattedString = cf.format(Double.NEGATIVE_INFINITY); in test_Constructor$D$Ljava_lang_String() 98 formattedString = cf.format(Double.NEGATIVE_INFINITY); in test_ConstructorLjava_lang_String() 420 assertEquals("NEGATIVE_ONE", fmt.format(Double.NEGATIVE_INFINITY)); in test_formatD()
|
/libcore/json/src/test/java/libcore/org/json/ |
D | JSONObjectTest.java | 197 object.putOpt("foo", Double.NEGATIVE_INFINITY); in testPutOptUnsupportedNumbers() 327 object.put("foo", (Float) Float.NEGATIVE_INFINITY); in testFloats() 623 object.put("foo", Double.NEGATIVE_INFINITY); in testPutUnsupportedNumbers() 642 object.put("foo", (Double) Double.NEGATIVE_INFINITY); in testPutUnsupportedNumbersAsObjects() 660 contents.put("bar", Double.NEGATIVE_INFINITY); in testCreateWithUnsupportedNumbers() 665 assertEquals(Double.NEGATIVE_INFINITY, object.get("bar")); in testCreateWithUnsupportedNumbers() 961 JSONObject.numberToString(Double.NEGATIVE_INFINITY); in testNumberToString()
|