[wpimath] Use UtilityClassTest for more utility classes (#5384)

This commit is contained in:
Ryan Blue
2023-06-09 00:11:26 -04:00
committed by GitHub
parent 9d53231b01
commit 901ab693d4
6 changed files with 28 additions and 6 deletions

View File

@@ -6,10 +6,15 @@ package edu.wpi.first.math;
import static org.junit.jupiter.api.Assertions.assertEquals;
import edu.wpi.first.wpilibj.UtilityClassTest;
import org.ejml.simple.SimpleMatrix;
import org.junit.jupiter.api.Test;
class DARETest {
class DARETest extends UtilityClassTest<DARE> {
DARETest() {
super(DARE.class);
}
public static void assertMatrixEqual(SimpleMatrix A, SimpleMatrix B) {
for (int i = 0; i < A.numRows(); i++) {
for (int j = 0; j < A.numCols(); j++) {