Skip to content

Commit 08fb7a4

Browse files
committed
malva: Disable 1.6 API tests from MathTest
This patch disables tests for 1.6 Math methods that GNU Classpath doesn't implement.
1 parent caa210b commit 08fb7a4

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/malva/java/lang/MathTest.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,12 @@ public static void testCeil() {
8484
}
8585

8686
public static void testCopySign() {
87+
/* @since 1.6
8788
assertEquals(0.0, Math.copySign(0.0d, 0.0d));
8889
assertEquals(-0.0, Math.copySign(0.0d, -0.0d));
8990
assertEquals(0.0f, Math.copySign(0.0f, 0.0f));
9091
assertEquals(-0.0f, Math.copySign(0.0f, -0.0f));
92+
*/
9193
}
9294

9395
public static void testCos() {
@@ -129,6 +131,7 @@ public static void testFloor() {
129131
}
130132

131133
public static void testGetExponent() {
134+
/* @since 1.6
132135
assertEquals(1, Math.getExponent(2));
133136
assertEquals(2, Math.getExponent(4));
134137
assertEquals(Double.MAX_EXPONENT + 1, Math.getExponent(Double.NaN));
@@ -142,7 +145,7 @@ public static void testGetExponent() {
142145
assertEquals(Float.MAX_EXPONENT + 1, Math.getExponent(Float.POSITIVE_INFINITY));
143146
assertEquals(Float.MAX_EXPONENT + 1, Math.getExponent(Float.NEGATIVE_INFINITY));
144147
assertEquals(Float.MIN_EXPONENT - 1, Math.getExponent(0.0f));
145-
148+
*/
146149
}
147150

148151
public static void testHypot() {
@@ -232,6 +235,7 @@ public static void testMin() {
232235
}
233236

234237
public static void testNextAfter() {
238+
/* @since 1.6
235239
assertEquals(1.0, Math.nextAfter(1.0-Math.ulp(0.0), 1.0));
236240
assertEquals(Math.ulp(0.0), Math.nextAfter(0.0, 1.0));
237241
assertEquals(Double.NaN, Math.nextAfter(Double.NaN, 0.0));
@@ -257,9 +261,11 @@ public static void testNextAfter() {
257261
assertEquals(-Float.MAX_VALUE, Math.nextAfter(Float.NEGATIVE_INFINITY, 0.0));
258262
assertEquals(Float.POSITIVE_INFINITY, Math.nextAfter(Float.MAX_VALUE, Double.POSITIVE_INFINITY));
259263
assertEquals(Float.NEGATIVE_INFINITY, Math.nextAfter(-Float.MAX_VALUE, Double.NEGATIVE_INFINITY));
264+
*/
260265
}
261266

262267
public static void testNextUp() {
268+
/* @since 1.6
263269
assertEquals(Math.ulp(0.0), Math.nextUp(0.0));
264270
assertEquals(Double.NaN, Math.nextUp(Double.NaN));
265271
assertEquals(Double.POSITIVE_INFINITY, Math.nextUp(Double.POSITIVE_INFINITY));
@@ -269,6 +275,7 @@ public static void testNextUp() {
269275
assertEquals(Float.NaN, Math.nextUp(Float.NaN));
270276
assertEquals(Float.POSITIVE_INFINITY, Math.nextUp(Float.POSITIVE_INFINITY));
271277
assertEquals(Float.MIN_VALUE, Math.nextUp(0.0f));
278+
*/
272279
}
273280

274281
public static void testPow() {
@@ -338,6 +345,7 @@ public static void testRound() {
338345
}
339346

340347
public static void testScalb() {
348+
/* @since 1.6
341349
assertEquals(0.0, Math.scalb(0.0, 0));
342350
assertEquals(2.0, Math.scalb(1.0, 1));
343351
assertEquals(Double.NaN, Math.scalb(Double.NaN, 1));
@@ -353,6 +361,7 @@ public static void testScalb() {
353361
assertEquals(Float.NEGATIVE_INFINITY, Math.scalb(Float.NEGATIVE_INFINITY, 1));
354362
assertEquals(0.0f, Math.scalb(0.0f, 1));
355363
assertEquals(-0.0f, Math.scalb(-0.0f, 1));
364+
*/
356365
}
357366

358367
public static void testSignum() {

0 commit comments

Comments
 (0)