/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | FloatTest.java | 833 String answer; in test_toStringF() local 836 answer = "12.90898"; in test_toStringF() 837 assertTrue("Incorrect String representation want " + answer + ", got " in test_toStringF() 838 + Float.toString(ff), Float.toString(ff).equals(answer)); in test_toStringF() 841 answer = "3.4028235E38"; in test_toStringF() 842 assertTrue("Incorrect String representation want " + answer + ", got " in test_toStringF() 843 + Float.toString(ff), Float.toString(ff).equals(answer)); in test_toStringF() 916 private void test_toString(float ff, String answer) { in test_toString() argument 918 assertTrue("Incorrect String representation want " + answer + ", got (" in test_toString() 919 + Float.toString(ff) + ")", Float.toString(ff).equals(answer)); in test_toString() [all …]
|
D | StrictMathTest.java | 109 double answer = StrictMath.tan(StrictMath.atan(1.0)); in test_atanD() local 110 assertTrue("Returned incorrect arc tangent: " + answer, answer <= 1.0 in test_atanD() 111 && answer >= 9.9999999999999983E-1); in test_atanD() 119 double answer = StrictMath.atan(StrictMath.tan(1.0)); in test_atan2DD() local 120 assertTrue("Returned incorrect arc tangent: " + answer, answer <= 1.0 in test_atan2DD() 121 && answer >= 9.9999999999999983E-1); in test_atan2DD() 507 double answer = StrictMath.log(StrictMath.exp(d)); in test_logD() local 509 + " answer = " + answer, in test_logD() 510 StrictMath.abs(answer - d) <= StrictMath in test_logD()
|
D | MathTest.java | 103 double answer = Math.tan(Math.atan(1.0)); in test_atanD() local 104 assertTrue("Returned incorrect arc tangent: " + answer, answer <= 1.0 in test_atanD() 105 && answer >= 9.9999999999999983E-1); in test_atanD() 113 double answer = Math.atan(Math.tan(1.0)); in test_atan2DD() local 114 assertTrue("Returned incorrect arc tangent: " + answer, answer <= 1.0 in test_atan2DD() 115 && answer >= 9.9999999999999983E-1); in test_atan2DD() 548 double answer = Math.log(Math.exp(d)); in test_logD() local 550 + " answer = " + answer, Math.abs(answer - d) <= Math in test_logD()
|
D | DoubleTest.java | 198 private void test_toString(double dd, String answer) { in test_toString() argument 199 assertEquals(answer, Double.toString(dd)); in test_toString() 201 assertEquals(answer, Double.toString(d.doubleValue())); in test_toString() 202 assertEquals(answer, d.toString()); in test_toString()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldAndroidStrictMathTest.java | 80 double answer = StrictMath.tan(StrictMath.atan(1.0)); in testAtanD() local 81 assertTrue("Returned incorrect arc tangent: " + answer, answer <= 1.0 in testAtanD() 82 && answer >= 9.9999999999999983E-1); in testAtanD() 87 double answer = StrictMath.atan(StrictMath.tan(1.0)); in testAtan2DD() local 88 assertTrue("Returned incorrect arc tangent: " + answer, answer <= 1.0 in testAtan2DD() 89 && answer >= 9.9999999999999983E-1); in testAtan2DD() 275 double answer = StrictMath.log(StrictMath.exp(d)); in testLogD() local 277 + " answer = " + answer, in testLogD() 278 StrictMath.abs(answer - d) <= StrictMath in testLogD()
|
D | OldAndroidMathTest.java | 101 double answer = Math.tan(Math.atan(1.0)); in testAtanD() local 102 assertTrue("Returned incorrect arc tangent: " + answer, answer <= 1.0 in testAtanD() 103 && answer >= 9.9999999999999983E-1); in testAtanD() 108 double answer = Math.atan(Math.tan(1.0)); in testAtan2DD() local 109 assertTrue("Returned incorrect arc tangent: " + answer, answer <= 1.0 in testAtan2DD() 110 && answer >= 9.9999999999999983E-1); in testAtan2DD() 276 double answer = Math.log(Math.exp(d)); in testLogD() local 278 + " answer = " + answer, Math.abs(answer - d) <= Math in testLogD()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | Arrays2Test.java | 133 …double[] answer = new double[] { Double.NEGATIVE_INFINITY, -0d, 0d, Double.MIN_VALUE, Double.MAX_V… in test_sort$D() local 141 Arrays.equals(specials1, answer)); in test_sort$D() 149 Arrays.equals(specials2, answer)); in test_sort$D() 169 …float[] answer = new float[] { Float.NEGATIVE_INFINITY, -0f, 0f, Float.MIN_VALUE, Float.MAX_VALUE,… in test_sort$F() local 177 Arrays.equals(specials1, answer)); in test_sort$F() 185 Arrays.equals(specials2, answer)); in test_sort$F()
|
D | ArraysTest.java | 1150 double[] answer = new double[] { Double.NEGATIVE_INFINITY, -0d, 0d, in test_sort$D() local 1161 Arrays.equals(specials1, answer)); in test_sort$D() 1168 Arrays.equals(specials2, answer)); in test_sort$D() 1241 float[] answer = new float[] { Float.NEGATIVE_INFINITY, -0f, 0f, in test_sort$F() local 1250 Arrays.equals(specials1, answer)); in test_sort$F() 1257 Arrays.equals(specials2, answer)); in test_sort$F()
|
/libcore/luni/src/main/java/java/text/ |
D | MessageFormat.java | 745 Format[] answer = new Format[maxArgumentIndex + 1]; in getFormatsByArgumentIndex() local 747 answer[argumentNumbers[i]] = formats[i]; in getFormatsByArgumentIndex() 749 return answer; in getFormatsByArgumentIndex()
|