Adafruit_CircuitPython_PIOASM/tests/test_wrap.py
KB Sriram 3e6a8bc392 Add type annotations for library and tests.
Verified that `mypy --strict adafruit_pioasm.py tests` runs without
errors.

Fixes: https://github.com/adafruit/Adafruit_CircuitPython_PIOASM/issues/24
2024-05-27 12:30:52 -07:00

19 lines
403 B
Python

# SPDX-FileCopyrightText: 2021 Jeff Epler, written for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""
Tests wrap
"""
from pytest_helpers import assert_assembly_fails, assert_pio_kwargs
def test_wrap() -> None:
assert_assembly_fails(".wrap")
assert_pio_kwargs(
"nop\n.wrap_target\nnop\nnop\n.wrap",
sideset_enable=False,
wrap=2,
wrap_target=1,
)