mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Enforce leading/trailing zeros in Java numeric constants (#2105)
Enforce that integer literals must not have leading zeros and that floating point literals must have leading or trailing zeros in Java.
This commit is contained in:
committed by
Peter Johnson
parent
fa85fbfc1c
commit
4ebae17123
@@ -61,7 +61,7 @@ public class AnalogPotentiometerTest extends AbstractComsSetup {
|
||||
for (double i = 0.0; i < 360.0; i = i + 1.0) {
|
||||
m_potSource.setAngle(i);
|
||||
m_potSource.setMaxVoltage(RobotController.getVoltage5V());
|
||||
Timer.delay(.02);
|
||||
Timer.delay(0.02);
|
||||
assertEquals(i, m_pot.get(), DOUBLE_COMPARISON_DELTA);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user