Skip to content

Commit abae800

Browse files
committed
[examples/maxswerve] Add header to a test file
1 parent 36567b0 commit abae800

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python3
12
#
23
# Copyright (c) FIRST and other WPILib contributors.
34
# Open Source Software; you can modify and/or share it under the terms of
@@ -6,9 +7,13 @@
67

78
import swerveutils
89

10+
911
def test_stepTowardsCircular1():
1012
current = 0.6408134451373411
1113
stepsize = 0.3455804605358387
1214
target = 0.0 # stepping towards zero direction
13-
result = swerveutils.stepTowardsCircular(current=current, stepsize=stepsize, target=target)
14-
assert abs(result) < abs(current) # stepping towards zero angle should result in smaller absolute value
15+
result = swerveutils.stepTowardsCircular(
16+
current = current, stepsize = stepsize, target = target
17+
)
18+
# stepping towards zero angle should result in smaller absolute value
19+
assert abs(result) < abs(current)

0 commit comments

Comments
 (0)