Skip to content

Commit bc09161

Browse files
committed
rm enums
1 parent ce93b8c commit bc09161

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/test_generic_agnostic_board_analogio.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@ def test_Ax_INPUT_WAVE_SINE():
100100
pin_sine_wave = analogio.AnalogIn(board.Ax_INPUT_WAVE_SINE)
101101

102102
# Run through the sine wave once
103-
for i, expected_value in enumerate(sine_wave):
103+
for expected_value in sine_wave:
104104
assert pin_sine_wave.value == expected_value
105105

106106
# Run through the sine wave again to ensure it loops back correctly
107-
for i, expected_value in enumerate(sine_wave):
107+
for expected_value in sine_wave:
108108
assert pin_sine_wave.value == expected_value
109109

110110
pin_sine_wave.deinit()
@@ -116,11 +116,11 @@ def test_Ax_INPUT_WAVE_SAW():
116116
pin_saw_wave = analogio.AnalogIn(board.Ax_INPUT_WAVE_SAW)
117117

118118
# Run through the sine wave once
119-
for i in range(len(sawtooth_wave)):
120-
assert pin_saw_wave.value == sawtooth_wave[i]
119+
for expected_value in sawtooth_wave:
120+
assert pin_saw_wave.value == expected_value
121121

122122
# Run through the sine wave again to ensure it loops back correctly
123-
for i in range(len(sawtooth_wave)):
124-
assert pin_saw_wave.value == sawtooth_wave[i]
123+
for expected_value in sawtooth_wave:
124+
assert pin_saw_wave.value == expected_value
125125

126126
pin_saw_wave.deinit()

0 commit comments

Comments
 (0)