From: brentru Date: Tue, 21 May 2024 17:54:38 +0000 (-0400) Subject: rm enums X-Git-Tag: 8.39.2^2~3 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/bc091611223e294af956ac433341e7f4077ccb98 rm enums --- diff --git a/tests/test_generic_agnostic_board_analogio.py b/tests/test_generic_agnostic_board_analogio.py index c1ff84e..dee83e9 100644 --- a/tests/test_generic_agnostic_board_analogio.py +++ b/tests/test_generic_agnostic_board_analogio.py @@ -100,11 +100,11 @@ def test_Ax_INPUT_WAVE_SINE(): pin_sine_wave = analogio.AnalogIn(board.Ax_INPUT_WAVE_SINE) # Run through the sine wave once - for i, expected_value in enumerate(sine_wave): + for expected_value in sine_wave: assert pin_sine_wave.value == expected_value # Run through the sine wave again to ensure it loops back correctly - for i, expected_value in enumerate(sine_wave): + for expected_value in sine_wave: assert pin_sine_wave.value == expected_value pin_sine_wave.deinit() @@ -116,11 +116,11 @@ def test_Ax_INPUT_WAVE_SAW(): pin_saw_wave = analogio.AnalogIn(board.Ax_INPUT_WAVE_SAW) # Run through the sine wave once - for i in range(len(sawtooth_wave)): - assert pin_saw_wave.value == sawtooth_wave[i] + for expected_value in sawtooth_wave: + assert pin_saw_wave.value == expected_value # Run through the sine wave again to ensure it loops back correctly - for i in range(len(sawtooth_wave)): - assert pin_saw_wave.value == sawtooth_wave[i] + for expected_value in sawtooth_wave: + assert pin_saw_wave.value == expected_value pin_saw_wave.deinit()