Home
last modified time | relevance | path

Searched refs:MIN_VALUE (Results 1 – 25 of 358) sorted by relevance

12345678910>>...15

/libcore/ojluni/src/test/java/lang/Math/
DRoundTests.java84 Math.round(Float.NEGATIVE_INFINITY), Integer.MIN_VALUE); in testSpecialCases()
85 Tests.test("Math.round", -(float) Integer.MIN_VALUE, in testSpecialCases()
86 Math.round(-(float) Integer.MIN_VALUE), Integer.MAX_VALUE); in testSpecialCases()
87 Tests.test("Math.round", (float) Integer.MIN_VALUE, in testSpecialCases()
88 Math.round((float) Integer.MIN_VALUE), Integer.MIN_VALUE); in testSpecialCases()
90 Tests.test("Math.round", Float.MIN_VALUE, in testSpecialCases()
91 Math.round(Float.MIN_VALUE), 0.0F); in testSpecialCases()
92 Tests.test("Math.round", -Float.MIN_VALUE, in testSpecialCases()
93 Math.round(-Float.MIN_VALUE), 0.0F); in testSpecialCases()
99 Math.round(Double.NEGATIVE_INFINITY), Long.MIN_VALUE); in testSpecialCases()
[all …]
DIeeeRecommendedTests.java136 +Float.MIN_VALUE, in testFloatGetExponent()
198 float top = Float.MIN_VALUE; in testFloatGetExponent()
233 +Double.MIN_VALUE, in testDoubleGetExponent()
296 double top = Double.MIN_VALUE; in testDoubleGetExponent()
389 Float.MIN_VALUE}, in testFloatNextAfter()
392 Float.MIN_VALUE}, in testFloatNextAfter()
401 {Float_MAX_SUBNORMALmm, 0.0f, Float_MAX_SUBNORMALmm - Float.MIN_VALUE}, in testFloatNextAfter()
404 {Float.MIN_VALUE, 0.0f, 0.0f}, in testFloatNextAfter()
405 {-Float.MIN_VALUE, 0.0f, -0.0f}, in testFloatNextAfter()
406 {Float.MIN_VALUE, Float.MIN_VALUE, Float.MIN_VALUE}, in testFloatNextAfter()
[all …]
DDivModTests.java101 testIntFloorDivMod(Integer.MIN_VALUE, 3, -715827883, 1); in testIntFloorDivMod()
102 testIntFloorDivMod(Integer.MIN_VALUE + 1, 3, -715827883, 2); in testIntFloorDivMod()
103 testIntFloorDivMod(Integer.MIN_VALUE + 1, -1, Integer.MAX_VALUE, 0); in testIntFloorDivMod()
105 testIntFloorDivMod(Integer.MAX_VALUE, Integer.MIN_VALUE, -1, -1); in testIntFloorDivMod()
106 testIntFloorDivMod(Integer.MIN_VALUE, Integer.MIN_VALUE, 1, 0); in testIntFloorDivMod()
107 testIntFloorDivMod(Integer.MIN_VALUE, Integer.MAX_VALUE, -2, 2147483646); in testIntFloorDivMod()
109 testIntFloorDivMod(Integer.MIN_VALUE, -1, Integer.MIN_VALUE, 0); in testIntFloorDivMod()
194 testLongFloorDivMod(Long.MIN_VALUE, 3L, Long.MIN_VALUE / 3L - 1L, 1L); in testLongFloorDivMod()
195 testLongFloorDivMod(Long.MIN_VALUE + 1L, 3L, Long.MIN_VALUE / 3L - 1L, 2L); in testLongFloorDivMod()
196 testLongFloorDivMod(Long.MIN_VALUE + 1, -1, Long.MAX_VALUE, 0L); in testLongFloorDivMod()
[all …]
DExactArithTests.java80 testIntegerExact(Integer.MIN_VALUE, Integer.MIN_VALUE); in testIntegerExact()
82 testIntegerExact(Integer.MIN_VALUE, 1); in testIntegerExact()
84 testIntegerExact(Integer.MIN_VALUE, 2); in testIntegerExact()
86 testIntegerExact(Integer.MIN_VALUE, -1); in testIntegerExact()
88 testIntegerExact(Integer.MIN_VALUE, -2); in testIntegerExact()
193 if (!exceptionExpected && x == Integer.MIN_VALUE && y == -1) { in testIntegerExact()
227 if (!exceptionExpected && x == Integer.MIN_VALUE && y == -1) { in testIntegerExact()
312 testLongExactTwice(Long.MIN_VALUE, Long.MIN_VALUE); in testLongExact()
314 testLongExactTwice(Long.MIN_VALUE, 1); in testLongExact()
316 testLongExactTwice(Long.MIN_VALUE, 2); in testLongExact()
[all …]
DClamp.java56 {0, Integer.MIN_VALUE, Integer.MAX_VALUE, 0}, in testIntClamp()
57 {Integer.MIN_VALUE, Integer.MIN_VALUE, Integer.MAX_VALUE, Integer.MIN_VALUE}, in testIntClamp()
58 {Integer.MAX_VALUE, Integer.MIN_VALUE, Integer.MAX_VALUE, Integer.MAX_VALUE}, in testIntClamp()
59 {Long.MAX_VALUE, Integer.MIN_VALUE, Integer.MAX_VALUE, Integer.MAX_VALUE}, in testIntClamp()
60 {Long.MIN_VALUE, Integer.MIN_VALUE, Integer.MAX_VALUE, Integer.MIN_VALUE}, in testIntClamp()
67 {1, Integer.MAX_VALUE, Integer.MIN_VALUE} in testIntClamp()
98 {0L, Long.MIN_VALUE, Long.MAX_VALUE, 0}, in testLongClamp()
99 {Long.MIN_VALUE, Long.MIN_VALUE, Long.MAX_VALUE, Long.MIN_VALUE}, in testLongClamp()
100 {Long.MAX_VALUE, Long.MIN_VALUE, Long.MAX_VALUE, Long.MAX_VALUE}, in testLongClamp()
107 {1, Long.MAX_VALUE, Long.MIN_VALUE} in testLongClamp()
[all …]
DAbsTests.java59 testIntAbs(Math::abs, Integer.MIN_VALUE, Integer.MIN_VALUE); in testIntMinValue()
62 assertThrows(ArithmeticException.class, () -> Math.absExact(Integer.MIN_VALUE)); in testIntMinValue()
86 { Integer.MIN_VALUE, -((long)Integer.MIN_VALUE)}, in testInRangeLongAbs()
99 testLongAbs(Math::abs, Long.MIN_VALUE, Long.MIN_VALUE); in testLongMinValue()
102 assertThrows(ArithmeticException.class, () -> Math.absExact(Long.MIN_VALUE)); in testLongMinValue()
DFusedMultiplyAddTests.java184 {Double.MIN_VALUE, -Double.MIN_VALUE, +0.0, in testSimpleD()
187 {Double.MIN_VALUE, -Double.MIN_VALUE, -0.0, in testSimpleD()
190 {Double.MIN_VALUE, Double.MIN_VALUE, +0.0, in testSimpleD()
193 {Double.MIN_VALUE, Double.MIN_VALUE, -0.0, in testSimpleD()
196 {Double.MIN_VALUE, +0.0, -0.0, in testSimpleD()
199 {Double.MIN_VALUE, -0.0, -0.0, in testSimpleD()
202 {Double.MIN_VALUE, +0.0, +0.0, in testSimpleD()
205 {Double.MIN_VALUE, -0.0, +0.0, in testSimpleD()
DPowTests.java100 /**/ (double) Long.MIN_VALUE, in testCrossProduct()
108 /**/ (double) Integer.MIN_VALUE - 1.0, in testCrossProduct()
109 /**/ (double) Integer.MIN_VALUE, in testCrossProduct()
110 /**/ (double) Integer.MIN_VALUE + 1.0, in testCrossProduct()
128 /* < 0.0 */ -Double.MIN_VALUE, in testCrossProduct()
131 /* > 0.0 */ +Double.MIN_VALUE, in testCrossProduct()
149 /**/ -(double) Integer.MIN_VALUE - 1.0, in testCrossProduct()
150 /**/ -(double) Integer.MIN_VALUE, in testCrossProduct()
151 /**/ -(double) Integer.MIN_VALUE + 1.0, in testCrossProduct()
159 /**/ -(double) Long.MIN_VALUE, in testCrossProduct()
/libcore/ojluni/src/test/java/math/BigDecimal/
DCompareToTests.java68 {valueOf(Long.MIN_VALUE), valueOf(Long.MAX_VALUE), MINUS_ONE}, in compareToTests()
69 {valueOf(Long.MIN_VALUE).negate(), valueOf(Long.MAX_VALUE), ONE}, in compareToTests()
71 {valueOf(Long.MIN_VALUE+1), valueOf(Long.MAX_VALUE), MINUS_ONE}, in compareToTests()
72 {valueOf(Long.MIN_VALUE+1).negate(), valueOf(Long.MAX_VALUE), ZERO}, in compareToTests()
74 {valueOf(Long.MAX_VALUE), valueOf(Long.MIN_VALUE), ONE}, in compareToTests()
75 {valueOf(Long.MAX_VALUE).negate(), valueOf(Long.MIN_VALUE), ONE}, in compareToTests()
77 {valueOf(Long.MAX_VALUE-1), valueOf(Long.MIN_VALUE), ONE}, in compareToTests()
78 {valueOf(Long.MAX_VALUE-1).negate(), valueOf(Long.MIN_VALUE), ONE}, in compareToTests()
80 {valueOf(Long.MIN_VALUE), valueOf(Long.MIN_VALUE), ZERO}, in compareToTests()
81 {valueOf(Long.MIN_VALUE).negate(), valueOf(Long.MIN_VALUE), ONE}, in compareToTests()
[all …]
DPowTests.java47 …{BigDecimal.valueOf(0, Integer.MIN_VALUE), new BigDecimal(0), BigDecimal.valueOf(1, … in zeroAndOneTests()
48 …{BigDecimal.valueOf(0, Integer.MIN_VALUE), new BigDecimal(1), BigDecimal.valueOf(0, … in zeroAndOneTests()
49 …{BigDecimal.valueOf(0, Integer.MIN_VALUE), new BigDecimal(2), BigDecimal.valueOf(0, … in zeroAndOneTests()
50 …{BigDecimal.valueOf(0, Integer.MIN_VALUE), new BigDecimal(999999999), BigDecimal.valueOf(0, … in zeroAndOneTests()
57 …{BigDecimal.valueOf(1, Integer.MIN_VALUE), new BigDecimal(0), BigDecimal.valueOf(1, … in zeroAndOneTests()
58 …{BigDecimal.valueOf(1, Integer.MIN_VALUE), new BigDecimal(1), BigDecimal.valueOf(1, … in zeroAndOneTests()
59 … {BigDecimal.valueOf(1, Integer.MIN_VALUE), new BigDecimal(2), null}, // underflow in zeroAndOneTests()
60 … {BigDecimal.valueOf(1, Integer.MIN_VALUE), new BigDecimal(999999999), null}, // underflow in zeroAndOneTests()
/libcore/ojluni/src/test/java/lang/String/CompactString/
DNumbers.java51 { Integer.toBinaryString(Integer.MIN_VALUE), in numbers()
56 { Integer.toOctalString(Integer.MIN_VALUE), "20000000000" }, in numbers()
60 { Integer.toHexString(Integer.MIN_VALUE), "80000000" }, in numbers()
65 { Integer.toString(Integer.MIN_VALUE, 2), in numbers()
70 { Integer.toString(Integer.MIN_VALUE, 8), "-20000000000" }, in numbers()
73 { Integer.toString(Integer.MIN_VALUE, 16), "-80000000" }, in numbers()
77 { Long.toBinaryString(Long.MIN_VALUE), in numbers()
80 { Long.toOctalString(Long.MIN_VALUE), "1000000000000000000000" }, in numbers()
82 { Long.toHexString(Long.MIN_VALUE), "8000000000000000" }, in numbers()
85 { Long.toString(Long.MIN_VALUE, 2), in numbers()
[all …]
/libcore/ojluni/src/test/java/lang/StrictMath/
DExactArithTests.java52 testIntegerExact(Integer.MIN_VALUE, Integer.MIN_VALUE); in testIntegerExact()
54 testIntegerExact(Integer.MIN_VALUE, 1); in testIntegerExact()
56 testIntegerExact(Integer.MIN_VALUE, 2); in testIntegerExact()
58 testIntegerExact(Integer.MIN_VALUE, -1); in testIntegerExact()
60 testIntegerExact(Integer.MIN_VALUE, -2); in testIntegerExact()
178 testLongExactTwice(Long.MIN_VALUE, Long.MIN_VALUE); in testLongExact()
180 testLongExactTwice(Long.MIN_VALUE, 1); in testLongExact()
182 testLongExactTwice(Long.MIN_VALUE, 2); in testLongExact()
184 testLongExactTwice(Long.MIN_VALUE, -1); in testLongExact()
186 testLongExactTwice(Long.MIN_VALUE, -2); in testLongExact()
[all …]
/libcore/ojluni/src/test/java/math/BigInteger/
DCompareToTests.java80 {valueOf(Long.MIN_VALUE), valueOf(Long.MAX_VALUE), MINUS_ONE}, in compareToTests()
81 {valueOf(Long.MIN_VALUE).negate(), valueOf(Long.MAX_VALUE), ONE}, in compareToTests()
83 {valueOf(Long.MIN_VALUE+1), valueOf(Long.MAX_VALUE), MINUS_ONE}, in compareToTests()
84 {valueOf(Long.MIN_VALUE+1).negate(), valueOf(Long.MAX_VALUE), ZERO}, in compareToTests()
86 {valueOf(Long.MAX_VALUE), valueOf(Long.MIN_VALUE), ONE}, in compareToTests()
87 {valueOf(Long.MAX_VALUE).negate(), valueOf(Long.MIN_VALUE), ONE}, in compareToTests()
89 {valueOf(Long.MAX_VALUE-1), valueOf(Long.MIN_VALUE), ONE}, in compareToTests()
90 {valueOf(Long.MAX_VALUE-1).negate(), valueOf(Long.MIN_VALUE), ONE}, in compareToTests()
92 {valueOf(Long.MIN_VALUE), valueOf(Long.MIN_VALUE), ZERO}, in compareToTests()
93 {valueOf(Long.MIN_VALUE).negate(), valueOf(Long.MIN_VALUE), ONE}, in compareToTests()
[all …]
DTestValueExact.java43 BigInteger.valueOf(Long.MIN_VALUE), in testLongValueExact()
49 BigInteger.valueOf(Long.MIN_VALUE).subtract(BigInteger.ONE), in testLongValueExact()
71 BigInteger.valueOf(Integer.MIN_VALUE), in testIntValueExact()
79 BigInteger.valueOf((long)Integer.MIN_VALUE - 1), in testIntValueExact()
101 BigInteger.valueOf(Short.MIN_VALUE), in testShortValueExact()
109 BigInteger.valueOf((long)Integer.MIN_VALUE - 1), in testShortValueExact()
110 BigInteger.valueOf((long)Integer.MIN_VALUE), in testShortValueExact()
111 BigInteger.valueOf( (int)Short.MIN_VALUE - 1), in testShortValueExact()
135 BigInteger.valueOf(Byte.MIN_VALUE), in testByteValueExact()
143 BigInteger.valueOf((long)Integer.MIN_VALUE - 1), in testByteValueExact()
[all …]
/libcore/ojluni/src/test/java/lang/String/concat/
DImplicitStringConcatBoundaries.java106 public static final byte BYTE_MIN_1 = Byte.MIN_VALUE;
107 public static byte BYTE_MIN_2 = Byte.MIN_VALUE;
111 public static final short SHORT_MIN_1 = Short.MIN_VALUE;
112 public static short SHORT_MIN_2 = Short.MIN_VALUE;
116 public static final char CHAR_MIN_1 = Character.MIN_VALUE;
117 public static char CHAR_MIN_2 = Character.MIN_VALUE;
121 public static final int INT_MIN_1 = Integer.MIN_VALUE;
122 public static int INT_MIN_2 = Integer.MIN_VALUE;
130 public static final float FLOAT_MIN_1 = Float.MIN_VALUE;
131 public static float FLOAT_MIN_2 = Float.MIN_VALUE;
[all …]
/libcore/ojluni/src/test/java/util/concurrent/tck/
DTimeUnitTest.java131 Integer.MAX_VALUE, Integer.MIN_VALUE, in testConvert()
132 Long.MAX_VALUE, Long.MIN_VALUE, in testConvert()
306 assertEquals(Long.MIN_VALUE, in testConvertSaturate()
310 assertEquals(Long.MIN_VALUE, in testConvertSaturate()
314 assertEquals(Long.MIN_VALUE, in testConvertSaturate()
318 assertEquals(Long.MIN_VALUE, in testConvertSaturate()
334 assertEquals(Long.MIN_VALUE, y.convert(-max - 1, x)); in testConvertSaturate()
335 assertEquals(Long.MIN_VALUE, y.convert(Long.MIN_VALUE + 1, x)); in testConvertSaturate()
338 assertEquals(Long.MIN_VALUE, y.convert(Long.MIN_VALUE, x)); in testConvertSaturate()
350 assertEquals(Long.MIN_VALUE, in testToNanosSaturate()
[all …]
/libcore/luni/src/test/java/libcore/java/math/
DBigDecimalTest.java53 String minLong = Long.toString(Long.MIN_VALUE); in testGetPrecision()
135 checkDivide("0", 1, Long.MIN_VALUE, 0, RoundingMode.DOWN); in testDivideRounding()
136 checkDivide("-1", 1, Long.MIN_VALUE, 0, RoundingMode.UP); in testDivideRounding()
137 checkDivide("-1", 1, Long.MIN_VALUE, 0, RoundingMode.FLOOR); in testDivideRounding()
138 checkDivide("0", 1, Long.MIN_VALUE, 0, RoundingMode.CEILING); in testDivideRounding()
139 checkDivide("0", 1, Long.MIN_VALUE, 0, RoundingMode.HALF_EVEN); in testDivideRounding()
140 checkDivide("0", 1, Long.MIN_VALUE, 0, RoundingMode.HALF_UP); in testDivideRounding()
141 checkDivide("0", 1, Long.MIN_VALUE, 0, RoundingMode.HALF_DOWN); in testDivideRounding()
146 checkDivide("0.50", Long.MIN_VALUE / 2, Long.MIN_VALUE, 2, RoundingMode.HALF_UP); in testDivideRounding()
147 checkDivide("0.5000", Long.MIN_VALUE / 2, Long.MIN_VALUE, 4, RoundingMode.HALF_UP); in testDivideRounding()
[all …]
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKDuration.java226 Duration test = Duration.ofNanos(Long.MIN_VALUE); in factory_nanos_min()
227 assertEquals(test.getSeconds(), Long.MIN_VALUE / 1000000000 - 1); in factory_nanos_min()
228 assertEquals(test.getNano(), Long.MIN_VALUE % 1000000000 + 1000000000); in factory_nanos_min()
250 Duration test = Duration.ofMinutes(Long.MIN_VALUE / 60); in factory_minutes_min()
251 assertEquals(test.getSeconds(), (Long.MIN_VALUE / 60) * 60); in factory_minutes_min()
262 Duration.ofMinutes(Long.MIN_VALUE / 60 - 1); in factory_minutes_tooSmall()
284 Duration test = Duration.ofHours(Long.MIN_VALUE / 3600); in factory_hours_min()
285 assertEquals(test.getSeconds(), (Long.MIN_VALUE / 3600) * 3600); in factory_hours_min()
296 Duration.ofHours(Long.MIN_VALUE / 3600 - 1); in factory_hours_tooSmall()
318 Duration test = Duration.ofDays(Long.MIN_VALUE / 86400); in factory_days_min()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/
DStrictMathTest.java31 testIntExact(Integer.MIN_VALUE, 1); in testIntExact()
32 testIntExact(Integer.MIN_VALUE, -1); in testIntExact()
34 testIntExact(Integer.MIN_VALUE, Integer.MIN_VALUE); in testIntExact()
83 testLongExact(Long.MIN_VALUE, 1); in testLongExact()
84 testLongExact(Long.MIN_VALUE, -1); in testLongExact()
86 testLongExact(Long.MIN_VALUE, Long.MIN_VALUE); in testLongExact()
134 if (a <= Integer.MAX_VALUE && a >= Integer.MIN_VALUE) { in testToIntExactL()
147 testFloorDivModI(Integer.MIN_VALUE, 1); in testIntFloorDivMod()
148 testFloorDivModI(Integer.MIN_VALUE, -1); in testIntFloorDivMod()
193 testFloorDivModL(Long.MIN_VALUE, 1L); in testLongFloorDivMod()
[all …]
DMathTest.java31 testIntExact(Integer.MIN_VALUE, 1); in testIntExact()
32 testIntExact(Integer.MIN_VALUE, -1); in testIntExact()
34 testIntExact(Integer.MIN_VALUE, Integer.MIN_VALUE); in testIntExact()
119 testLongExact(Long.MIN_VALUE, 1); in testLongExact()
120 testLongExact(Long.MIN_VALUE, -1); in testLongExact()
122 testLongExact(Long.MIN_VALUE, Long.MIN_VALUE); in testLongExact()
206 if (a <= Integer.MAX_VALUE && a >= Integer.MIN_VALUE) { in testToIntExactL()
219 testFloorDivModI(Integer.MIN_VALUE, 1); in testIntFloorDivMod()
220 testFloorDivModI(Integer.MIN_VALUE, -1); in testIntFloorDivMod()
265 testFloorDivModL(Long.MIN_VALUE, 1L); in testLongFloorDivMod()
[all …]
DOldAndroidStrictMathTest.java121 1.7031839360032603E-108, StrictMath.cbrt(Double.MIN_VALUE)); in testCbrtD()
175 .cosh(Double.MIN_VALUE)); in testCosh_D()
211 assertEquals("Should return MIN_VALUE", Double.MIN_VALUE, StrictMath in testExpm1D()
212 .expm1(Double.MIN_VALUE)); in testExpm1D()
257 -5413.7185, Double.MIN_VALUE)); in testHypotDD()
311 StrictMath.log10(Double.MIN_VALUE)); in testLog10D()
339 assertEquals("Should return Double.MIN_VALUE", Double.MIN_VALUE, in testLog1pD()
340 StrictMath.log1p(Double.MIN_VALUE)); in testLog1pD()
472 assertEquals(1.0, StrictMath.signum(Double.MIN_VALUE), 0D); in testSignumD()
474 assertEquals(-1.0, StrictMath.signum(-Double.MIN_VALUE), 0D); in testSignumD()
[all …]
DOldAndroidMathTest.java181 1.7031839360032603E-108, Math.cbrt(Double.MIN_VALUE), 0D); in testCbrtD()
222 assertEquals("Should return 1.0", 1.0, Math.cosh(Double.MIN_VALUE), 0D); in testCoshD()
257 assertEquals("Should return MIN_VALUE", Double.MIN_VALUE, Math in testExpm1D()
258 .expm1(Double.MIN_VALUE), 0D); in testExpm1D()
301 -5413.7185, Double.MIN_VALUE), 0D); in testHypotDD()
340 assertEquals(-323.3062153431158, Math.log10(Double.MIN_VALUE)); in testLog10D()
364 assertEquals("Should return Double.MIN_VALUE", Double.MIN_VALUE, Math in testLog1pD()
365 .log1p(Double.MIN_VALUE), 0D); in testLog1pD()
496 assertEquals(1.0, Math.signum(Double.MIN_VALUE), 0D); in testSignumD()
498 assertEquals(-1.0, Math.signum(-Double.MIN_VALUE), 0D); in testSignumD()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DMathTest.java137 assertEquals(1.7031839360032603E-108, Math.cbrt(Double.MIN_VALUE), 0D); in test_cbrt_D()
157 Double.MIN_NORMAL, Double.MIN_NORMAL / 2, Double.MIN_VALUE, +0.0,
158 0.0, -0.0, -Double.MIN_VALUE, -Double.MIN_NORMAL / 2,
229 Float.MIN_NORMAL, Float.MIN_NORMAL / 2, Float.MIN_VALUE, +0.0f,
230 0.0f, -0.0f, -Float.MIN_VALUE, -Float.MIN_NORMAL / 2,
330 assertEquals("Should return 1.0", 1.0, Math.cosh(Double.MIN_VALUE), 0D); in test_cosh_D()
371 assertEquals("Should return MIN_VALUE", Double.MIN_VALUE, Math in test_expm1_D()
372 .expm1(Double.MIN_VALUE), 0D); in test_expm1_D()
412 -Double.MIN_NORMAL / 2, Double.MIN_VALUE, -Double.MIN_VALUE, +0.0,
458 … Float.MIN_VALUE, -Float.MIN_VALUE, +0.0f, 0.0f, -0.0f, Float.NaN, 1, Float.MIN_NORMAL * 1.5f };
[all …]
DStrictMathTest.java156 1.7031839360032603E-108, StrictMath.cbrt(Double.MIN_VALUE)); in test_cbrt_D()
348 .cosh(Double.MIN_VALUE)); in test_cosh_D()
390 assertEquals("Should return MIN_VALUE", Double.MIN_VALUE, StrictMath in test_expm1_D()
391 .expm1(Double.MIN_VALUE)); in test_expm1_D()
483 -5413.7185, Double.MIN_VALUE)); in test_hypot_DD()
546 StrictMath.log10(Double.MIN_VALUE)); in test_log10_D()
577 assertEquals("Should return Double.MIN_VALUE", Double.MIN_VALUE, in test_log1p_D()
578 StrictMath.log1p(Double.MIN_VALUE)); in test_log1p_D()
1012 assertEquals(64.0, StrictMath.scalb(Double.MIN_VALUE, 1080)); in test_scalb_DI()
1043 Double.MIN_VALUE, 8000)); in test_scalb_DI()
[all …]
/libcore/luni/src/test/java/libcore/dalvik/system/
DJniTest.java150 final char[] literals = {Character.MAX_VALUE, Character.MIN_VALUE, in testPassingChars()
181 final byte[] literals = {Byte.MAX_VALUE, Byte.MIN_VALUE, 0, -1}; in testPassingBytes()
209 …final short[] literals = {Byte.MAX_VALUE, Byte.MIN_VALUE, Short.MAX_VALUE, Short.MIN_VALUE, 0, -1}; in testPassingShorts()
237 final int[] literals = {Byte.MAX_VALUE, Byte.MIN_VALUE, Short.MAX_VALUE, Short.MIN_VALUE, in testPassingInts()
238 Integer.MAX_VALUE, Integer.MIN_VALUE, 0, -1}; in testPassingInts()
266 final long[] literals = {Byte.MAX_VALUE, Byte.MIN_VALUE, Short.MAX_VALUE, Short.MIN_VALUE, in testPassingLongs()
267 … Integer.MAX_VALUE, Integer.MIN_VALUE, Long.MAX_VALUE, Long.MIN_VALUE, 0, -1}; in testPassingLongs()
295 final float[] literals = {Byte.MAX_VALUE, Byte.MIN_VALUE, Short.MAX_VALUE, Short.MIN_VALUE, in testPassingFloats()
296 … Integer.MAX_VALUE, Integer.MIN_VALUE, Long.MAX_VALUE, Long.MIN_VALUE, in testPassingFloats()
297 Float.MAX_VALUE, Float.MIN_VALUE, Float.MIN_NORMAL, Float.NaN, in testPassingFloats()
[all …]

12345678910>>...15