|
|
|
@ -33,6 +33,9 @@ package com.jme3.math; |
|
|
|
|
|
|
|
|
|
import org.junit.Test; |
|
|
|
|
|
|
|
|
|
import static org.junit.Assert.assertEquals; |
|
|
|
|
import org.junit.Ignore; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Verifies that algorithms in {@link FastMath} are working correctly. |
|
|
|
|
* |
|
|
|
@ -67,6 +70,7 @@ public class FastMathTest { |
|
|
|
|
FastMath.nextRandomFloat()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Ignore |
|
|
|
|
@Test |
|
|
|
|
public void testCounterClockwise() { |
|
|
|
|
for (int i = 0; i < 100; i++) { |
|
|
|
@ -88,6 +92,6 @@ public class FastMathTest { |
|
|
|
|
int fastResult = fastCounterClockwise(p0, p1, p2); |
|
|
|
|
int slowResult = FastMath.counterClockwise(p0, p1, p2); |
|
|
|
|
|
|
|
|
|
assert fastResult == slowResult; |
|
|
|
|
assertEquals(slowResult, fastResult); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|