Skip to content

Commit

Permalink
Utils: more general types for formal arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Jul 8, 2024
1 parent 582a9e2 commit 2f43615
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/test/java/testjoltjni/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ of this software and associated documentation files (the "Software"), to deal
package testjoltjni;

import com.github.stephengold.joltjni.Jolt;
import com.github.stephengold.joltjni.Quat;
import com.github.stephengold.joltjni.RVec3;
import com.github.stephengold.joltjni.Vec3;
import com.github.stephengold.joltjni.QuatArg;
import com.github.stephengold.joltjni.RVec3Arg;
import com.github.stephengold.joltjni.Vec3Arg;
import com.jme3.system.NativeLibraryLoader;
import java.io.File;
import org.junit.Assert;
Expand Down Expand Up @@ -58,7 +58,7 @@ private Utils() {
* @param tolerance the allowable difference for each component (≥0)
*/
public static void assertEquals(float x, float y, float z, float w,
Quat actual, float tolerance) {
QuatArg actual, float tolerance) {
Assert.assertEquals("x component", x, actual.getX(), tolerance);
Assert.assertEquals("y component", y, actual.getY(), tolerance);
Assert.assertEquals("z component", z, actual.getZ(), tolerance);
Expand All @@ -76,7 +76,7 @@ public static void assertEquals(float x, float y, float z, float w,
* @param tolerance the allowable difference for each component (≥0)
*/
public static void assertEquals(
float x, float y, float z, RVec3 actual, float tolerance) {
float x, float y, float z, RVec3Arg actual, float tolerance) {
Assert.assertEquals("x component", x, actual.x(), tolerance);
Assert.assertEquals("y component", y, actual.y(), tolerance);
Assert.assertEquals("z component", z, actual.z(), tolerance);
Expand All @@ -93,7 +93,7 @@ public static void assertEquals(
* @param tolerance the allowable difference for each component (≥0)
*/
public static void assertEquals(
float x, float y, float z, Vec3 actual, float tolerance) {
float x, float y, float z, Vec3Arg actual, float tolerance) {
Assert.assertEquals("x component", x, actual.getX(), tolerance);
Assert.assertEquals("y component", y, actual.getY(), tolerance);
Assert.assertEquals("z component", z, actual.getZ(), tolerance);
Expand Down

0 comments on commit 2f43615

Please sign in to comment.