circuitpython/tests/misc/cexample_module.py
Laurens Valk 1d27c7d423 tests/misc: Add test for cexample module.
This also moves the existing test for cexample.add_ints
originally done in extra_coverage.

Signed-off-by: Laurens Valk <laurens@pybricks.com>
2022-11-23 11:44:13 +11:00

15 lines
202 B
Python

# test custom builtin module
try:
import cexample
except ImportError:
print("SKIP")
raise SystemExit
print(cexample)
d = dir(cexample)
d.index("add_ints")
print(cexample.add_ints(1, 3))