Home
last modified time | relevance | path

Searched refs:sum2 (Results 1 – 2 of 2) sorted by relevance

/libcore/ojluni/src/test/java/lang/StrictMath/
DExactArithTests.java103 long sum2 = (long) x + (long) y; in testIntegerExact() local
104 if ((int) sum2 != sum2) { in testIntegerExact()
106 } else if (sum != sum2) { in testIntegerExact()
107 … fail("FAIL: long StrictMath.addExact(" + x + " + " + y + ") = " + sum + "; expected: " + sum2); in testIntegerExact()
110 long sum2 = (long) x + (long) y; in testIntegerExact()
111 if ((int) sum2 == sum2) { in testIntegerExact()
/libcore/ojluni/src/test/java/lang/Math/
DExactArithTests.java79 long sum2 = (long) x + (long) y; in testIntegerExact() local
80 if ((int) sum2 != sum2) { in testIntegerExact()
82 } else if (sum != sum2) { in testIntegerExact()
83 … fail("FAIL: long Math.addExact(" + x + " + " + y + ") = " + sum + "; expected: " + sum2); in testIntegerExact()
86 long sum2 = (long) x + (long) y; in testIntegerExact()
87 if ((int) sum2 == sum2) { in testIntegerExact()