diff options
author | Rami Ali <flowergrass@users.noreply.github.com> | 2016-12-28 17:29:52 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-12-28 17:46:52 +1100 |
commit | eae819c0ed1cdfba33820e06292fab348ec4756d (patch) | |
tree | c40139d8375f8bdd85142b673a4a75bb6ee38980 | |
parent | e81116d07d3fed43f77f81bd5e20800d9d798f5f (diff) |
tests/micropython: Add test for micropython.stack_use() function.
-rw-r--r-- | tests/micropython/stack_use.py | 7 | ||||
-rw-r--r-- | tests/micropython/stack_use.py.exp | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/micropython/stack_use.py b/tests/micropython/stack_use.py new file mode 100644 index 000000000..bc714755a --- /dev/null +++ b/tests/micropython/stack_use.py @@ -0,0 +1,7 @@ +# tests stack_use function in micropython module +import micropython + +if not hasattr(micropython, 'stack_use'): + print('SKIP') +else: + print(type(micropython.stack_use())) # output varies diff --git a/tests/micropython/stack_use.py.exp b/tests/micropython/stack_use.py.exp new file mode 100644 index 000000000..fe37ceaa1 --- /dev/null +++ b/tests/micropython/stack_use.py.exp @@ -0,0 +1 @@ +<class 'int'> |