From 5368817ed32f6b6213c654318ed14ff3bea5049b Mon Sep 17 00:00:00 2001 From: maxwtan <100314265+MaxwellTTan20@users.noreply.github.com> Date: Mon, 23 Feb 2026 20:09:24 -0800 Subject: [PATCH] don't need these --- .../robot/subsystems/Intake/ClimbTest.java | 23 ------------- .../robot/subsystems/Intake/IntakeTest.java | 34 ------------------- 2 files changed, 57 deletions(-) delete mode 100644 src/test/java/frc/robot/subsystems/Intake/ClimbTest.java delete mode 100644 src/test/java/frc/robot/subsystems/Intake/IntakeTest.java diff --git a/src/test/java/frc/robot/subsystems/Intake/ClimbTest.java b/src/test/java/frc/robot/subsystems/Intake/ClimbTest.java deleted file mode 100644 index 687b9f4..0000000 --- a/src/test/java/frc/robot/subsystems/Intake/ClimbTest.java +++ /dev/null @@ -1,23 +0,0 @@ -package frc.robot.subsystems.Intake; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -import org.junit.jupiter.api.Test; - -import edu.wpi.first.math.util.Units; -import frc.robot.subsystems.Climb.LinearClimb; - -public class ClimbTest { - - private LinearClimb climb = new LinearClimb(); - - - @Test - public void conversionTest() { - - - assertEquals(2 * Math.PI * Units.inchesToMeters(0.334), climb.rotationsToMeters(45), 0.0001); - // the methods should be inverses of each other - assertEquals(15.0, climb.rotationsToMeters(climb.metersToRotations(15.0)), 0.0001); - } -} diff --git a/src/test/java/frc/robot/subsystems/Intake/IntakeTest.java b/src/test/java/frc/robot/subsystems/Intake/IntakeTest.java deleted file mode 100644 index 36fd70b..0000000 --- a/src/test/java/frc/robot/subsystems/Intake/IntakeTest.java +++ /dev/null @@ -1,34 +0,0 @@ -package frc.robot.subsystems.Intake; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -import org.junit.jupiter.api.AfterEach; -import org.junit.jupiter.api.Test; - -public class IntakeTest { - Intake intake = new Intake(); - - @AfterEach - public void cleanup() { - intake.close(); - } - - /** - * Test the rotations to inches and inches to rotations conversion functions. - * Assumes a gear ratio of 36:12 (= 3). - * Assumes a 10DP rack and a 10-tooth rack pinion. - */ - @Test - public void conversionTest() { - // 3 motor rotations will turn the rack pinion once. - // That will advance the rack 10 teeth. - // linear distance will be pi * 10 / 10 = pi. - assertEquals(Math.PI, intake.rotationsToInches(3.0), 0.0001); - - // traveling pi inches should take 3 motor turns - assertEquals(3.0, intake.inchesToRotations(Math.PI), 0.0001); - - // the methods should be inverses of each other - assertEquals(15.0, intake.rotationsToInches(intake.inchesToRotations(15.0)), 0.0001); - } -} -- 2.39.5