Verified that `mypy --strict adafruit_pioasm.py tests` runs without errors. Fixes: https://github.com/adafruit/Adafruit_CircuitPython_PIOASM/issues/24
19 lines
403 B
Python
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,
|
|
)
|