Skip to content

Commit

Permalink
Added some more tests, finished class
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTinker64 committed Sep 2, 2023
1 parent 6adc367 commit b5828da
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/test/java/SwerveModuleTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,26 @@ void testEveryTenthAngleInPlace() {
Mockito.reset(mockDriveMotor, mockTurningMotor);
}
}

@Test
void testBackwardFullThrottleAnd90() {
setStateTemplate(-1.0, 90);
}

@Test
void testBackwardFullThrottleAnd180() {
setStateTemplate(-1.0, 180);
}

@Test
void testForwardFullThrottleAnd90() {
setStateTemplate(1.0, 90);
}

@Test
void testForwardFullThrottleAnd180() {
setStateTemplate(1.0, 180);
}


@AfterEach
Expand Down

0 comments on commit b5828da

Please sign in to comment.