Home
last modified time | relevance | path

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

12345678910

/libcore/ojluni/src/test/java/lang/StrictMath/
DExactArithTests.java78 testIntegerExact(Integer.MIN_VALUE, Integer.MIN_VALUE); in testIntegerExact()
80 testIntegerExact(Integer.MIN_VALUE, 1); in testIntegerExact()
82 testIntegerExact(Integer.MIN_VALUE, 2); in testIntegerExact()
84 testIntegerExact(Integer.MIN_VALUE, -1); in testIntegerExact()
86 testIntegerExact(Integer.MIN_VALUE, -2); in testIntegerExact()
160 testLongExactTwice(Long.MIN_VALUE, Long.MIN_VALUE); in testLongExact()
162 testLongExactTwice(Long.MIN_VALUE, 1); in testLongExact()
164 testLongExactTwice(Long.MIN_VALUE, 2); in testLongExact()
166 testLongExactTwice(Long.MIN_VALUE, -1); in testLongExact()
168 testLongExactTwice(Long.MIN_VALUE, -2); in testLongExact()
[all …]
DMultiplicationTests.java96 {Long.MAX_VALUE, Long.MIN_VALUE}, in testMultiplyHigh()
97 {Long.MIN_VALUE, Long.MAX_VALUE}, in testMultiplyHigh()
98 {Long.MIN_VALUE, Long.MIN_VALUE} in testMultiplyHigh()
/libcore/ojluni/src/test/java/lang/Math/
DExactArithTests.java54 testIntegerExact(Integer.MIN_VALUE, Integer.MIN_VALUE); in testIntegerExact()
56 testIntegerExact(Integer.MIN_VALUE, 1); in testIntegerExact()
58 testIntegerExact(Integer.MIN_VALUE, 2); in testIntegerExact()
60 testIntegerExact(Integer.MIN_VALUE, -1); in testIntegerExact()
62 testIntegerExact(Integer.MIN_VALUE, -2); in testIntegerExact()
185 testLongExactTwice(Long.MIN_VALUE, Long.MIN_VALUE); in testLongExact()
187 testLongExactTwice(Long.MIN_VALUE, 1); in testLongExact()
189 testLongExactTwice(Long.MIN_VALUE, 2); in testLongExact()
191 testLongExactTwice(Long.MIN_VALUE, -1); in testLongExact()
193 testLongExactTwice(Long.MIN_VALUE, -2); in testLongExact()
[all …]
DDivModTests.java78 testIntFloorDivMod(Integer.MIN_VALUE, 3, -715827883, 1); in testIntFloorDivMod()
79 testIntFloorDivMod(Integer.MIN_VALUE + 1, 3, -715827883, 2); in testIntFloorDivMod()
80 testIntFloorDivMod(Integer.MIN_VALUE + 1, -1, Integer.MAX_VALUE, 0); in testIntFloorDivMod()
82 testIntFloorDivMod(Integer.MIN_VALUE, -1, Integer.MIN_VALUE, 0); in testIntFloorDivMod()
167 testLongFloorDivMod(Long.MIN_VALUE, 3L, Long.MIN_VALUE / 3L - 1L, 1L); in testLongFloorDivMod()
168 testLongFloorDivMod(Long.MIN_VALUE + 1L, 3L, Long.MIN_VALUE / 3L - 1L, 2L); in testLongFloorDivMod()
169 testLongFloorDivMod(Long.MIN_VALUE + 1, -1, Long.MAX_VALUE, 0L); in testLongFloorDivMod()
171 testLongFloorDivMod(Long.MIN_VALUE, -1, Long.MIN_VALUE, 0L); in testLongFloorDivMod()
272 testLongIntFloorDivMod(Long.MIN_VALUE, 3, Long.MIN_VALUE / 3L - 1L, 1); in testLongIntFloorDivMod()
273 testLongIntFloorDivMod(Long.MIN_VALUE + 1L, 3, Long.MIN_VALUE / 3L - 1L, 2); in testLongIntFloorDivMod()
[all …]
DMultiplicationTests.java57 {Long.MAX_VALUE, Long.MIN_VALUE}, in testMultiplyHigh()
58 {Long.MIN_VALUE, Long.MAX_VALUE}, in testMultiplyHigh()
59 {Long.MIN_VALUE, Long.MIN_VALUE} in testMultiplyHigh()
/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 …]
DTCKPeriod.java101 assertPeriod(Period.ofYears(Integer.MIN_VALUE), Integer.MIN_VALUE, 0, 0); in factory_ofYears_int()
114 assertPeriod(Period.ofMonths(Integer.MIN_VALUE), 0, Integer.MIN_VALUE, 0); in factory_ofMonths_int()
127 assertPeriod(Period.ofWeeks(Integer.MIN_VALUE / 7), 0, 0, (Integer.MIN_VALUE / 7) * 7); in factory_ofWeeks_int()
140 assertPeriod(Period.ofDays(Integer.MIN_VALUE), 0, 0, Integer.MIN_VALUE); in factory_ofDays_int()
280 {"P" + Integer.MIN_VALUE + "Y", Period.ofYears(Integer.MIN_VALUE)}, in data_factory_parseSuccess()
294 {"P" + Integer.MIN_VALUE + "M", Period.ofMonths(Integer.MIN_VALUE)}, in data_factory_parseSuccess()
320 {"P" + Integer.MIN_VALUE + "D", Period.ofDays(Integer.MIN_VALUE)}, in data_factory_parseSuccess()
356 assertEquals(expected.getYears() == Integer.MIN_VALUE || in factory_parse_minus()
357 expected.getMonths() == Integer.MIN_VALUE || in factory_parse_minus()
358 expected.getDays() == Integer.MIN_VALUE, true); in factory_parse_minus()
[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 …]
DOldDoubleTest.java26 d= new Double(Byte.MIN_VALUE); in test_byteValue()
27 assertEquals("Returned incorrect byte value", Byte.MIN_VALUE, d.byteValue()); in test_byteValue()
48 assertEquals(Double.MIN_VALUE, new Double("4.9E-324").doubleValue()); in test_doubleValue()
55 assertEquals(Float.MIN_VALUE, new Double("1.4E-45").floatValue()); in test_floatValue()
61 assertEquals("Returned incorrect int value", Integer.MIN_VALUE, in test_intValue()
DShortTest.java21 final short min = Short.MIN_VALUE; in test_compare()
44 for(int i = Short.MIN_VALUE; i < Short.MAX_VALUE; i++) {
53 for(int i = Short.MIN_VALUE; i < Short.MAX_VALUE; i++) { in testToUnsignedLong()
87 assertTrue(Short.compareUnsigned(Short.MIN_VALUE, (short)32768) == 0); in testCompareUnsigned()
89 assertTrue(Short.compareUnsigned(Short.MIN_VALUE, Short.MAX_VALUE) > 0); in testCompareUnsigned()
90 assertTrue(Short.compareUnsigned(Short.MIN_VALUE, z) < 0); in testCompareUnsigned()
DByteTest.java21 final byte min = Byte.MIN_VALUE; in test_compare()
44 for(int i = Byte.MIN_VALUE; i < Byte.MAX_VALUE; i++) {
53 for(int i = Byte.MIN_VALUE; i < Byte.MAX_VALUE; i++) { in testToUnsignedLong()
87 assertTrue(Byte.compareUnsigned(Byte.MIN_VALUE, (byte)128) == 0); in testCompareUnsigned()
89 assertTrue(Byte.compareUnsigned(Byte.MIN_VALUE, Byte.MAX_VALUE) > 0); in testCompareUnsigned()
90 assertTrue(Byte.compareUnsigned(Byte.MIN_VALUE, z) < 0); in testCompareUnsigned()
DOldFloatTest.java64 assertTrue(new Float(Float.MAX_VALUE).hashCode() != new Float(Float.MIN_VALUE).hashCode()); in test_hashCode()
79 assertEquals(0, new Float(Float.MIN_VALUE).intValue()); in test_intValue()
85 assertFalse(Float.isNaN(Float.MIN_VALUE)); in test_isNaNF()
90 assertEquals(0, new Float(Float.MIN_VALUE).longValue()); in test_longValue()
/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 …]
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
DURLConnectionTest.java634 hf = uc.getHeaderFieldDate("Content-Encoding", Long.MIN_VALUE);
636 Long.MIN_VALUE, hf);
637 hf = uc.getHeaderFieldDate("Content-Length", Long.MIN_VALUE);
639 Long.MIN_VALUE, hf);
640 hf = uc.getHeaderFieldDate("Content-Type", Long.MIN_VALUE);
642 Long.MIN_VALUE, hf);
643 hf = uc.getHeaderFieldDate("content-type", Long.MIN_VALUE);
645 Long.MIN_VALUE, hf);
646 hf = uc.getHeaderFieldDate("Date", Long.MIN_VALUE);
649 hf = uc.getHeaderFieldDate("SERVER", Long.MIN_VALUE);
[all …]
/libcore/ojluni/src/test/java/nio/file/attribute/
DFileTimeTest.java79 cmp(Long.MAX_VALUE, DAYS, Long.MIN_VALUE, NANOSECONDS, 1); in main()
80 cmp(Long.MIN_VALUE, DAYS, Long.MIN_VALUE, NANOSECONDS, -1); in main()
81 cmp(Long.MIN_VALUE, DAYS, Long.MAX_VALUE, NANOSECONDS, -1); in main()
83 cmp(Instant.MIN, Long.MIN_VALUE, DAYS, 1); in main()
84 cmp(Instant.MIN, Long.MIN_VALUE, HOURS, 1); in main()
85 cmp(Instant.MIN, Long.MIN_VALUE, MINUTES, 1); in main()
86 cmp(Instant.MIN, Long.MIN_VALUE, SECONDS, 1); in main()
118 to(Long.MIN_VALUE, unit); in main()
135 long value = Long.MIN_VALUE; in main()
237 overflow(Long.MIN_VALUE, in main()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DFieldTest.java1181 f.setByte(x, Byte.MIN_VALUE); in test_setByteLjava_lang_ObjectB()
1192 f.setByte(null, Byte.MIN_VALUE); in test_setByteLjava_lang_ObjectB()
1203 f.setByte(null, Byte.MIN_VALUE); in test_setByteLjava_lang_ObjectB()
1205 assertEquals("Returned incorrect byte field value", Byte.MIN_VALUE, in test_setByteLjava_lang_ObjectB()
1231 f.setChar(x, Character.MIN_VALUE); in test_setCharLjava_lang_ObjectC()
1242 f.setChar(null, Character.MIN_VALUE); in test_setCharLjava_lang_ObjectC()
1253 f.setChar(null, Character.MIN_VALUE); in test_setCharLjava_lang_ObjectC()
1256 Character.MIN_VALUE, val); in test_setCharLjava_lang_ObjectC()
1270 f.setDouble(x, Double.MIN_VALUE); in test_setDoubleLjava_lang_ObjectD()
1275 assertEquals("Returned incorrect double field value", Double.MIN_VALUE, in test_setDoubleLjava_lang_ObjectD()
[all …]
/libcore/luni/src/test/java/libcore/libcore/util/
DFP16Test.java45 assertEquals(MIN_VALUE, toHalf(5.96046e-8f)); in testSingleToHalf()
102 assertEquals("0x0.1p-14", toHexString(MIN_VALUE)); in testHexString()
147 assertFalse(FP16.isNormalized(MIN_VALUE)); in testIsNormalized()
224 assertEquals(POSITIVE_ZERO, FP16.rint(MIN_VALUE)); in testRint()
277 assertTrue(FP16.less(MIN_VALUE, MIN_NORMAL)); in testLess()
278 assertFalse(FP16.less(MIN_NORMAL, MIN_VALUE)); in testLess()
283 assertTrue(FP16.less(MIN_VALUE, (short) 0x3ff)); in testLess()
296 assertTrue(FP16.lessEquals(MIN_VALUE, MIN_NORMAL)); in testLessEquals()
297 assertFalse(FP16.lessEquals(MIN_NORMAL, MIN_VALUE)); in testLessEquals()
302 assertTrue(FP16.lessEquals(MIN_VALUE, (short) 0x3ff)); in testLessEquals()
[all …]
/libcore/luni/src/test/java/libcore/java/sql/
DTimestampTest.java32 Timestamp t1 = new Timestamp(Long.MIN_VALUE); in testToString()
35 Timestamp t2 = new Timestamp(Long.MIN_VALUE + 1); in testToString()
38 Timestamp t3 = new Timestamp(Long.MIN_VALUE + 807); in testToString()
41 Timestamp t4 = new Timestamp(Long.MIN_VALUE + 808); in testToString()

12345678910