From af43565322f5c45a1a92df1afceff24c93021998 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 12 Mar 2015 22:47:44 +0000 Subject: tests: Add tests for things that are not already tested. The aim here is to improve coverage of the code. --- tests/micropython/decorator.py | 7 +++++++ tests/micropython/decorator.py.exp | 1 + 2 files changed, 8 insertions(+) create mode 100644 tests/micropython/decorator.py create mode 100644 tests/micropython/decorator.py.exp (limited to 'tests/micropython') diff --git a/tests/micropython/decorator.py b/tests/micropython/decorator.py new file mode 100644 index 000000000..bf688968a --- /dev/null +++ b/tests/micropython/decorator.py @@ -0,0 +1,7 @@ +# test micropython-specific decorators + +@micropython.bytecode +def f(): + return 'bytecode' + +print(f()) diff --git a/tests/micropython/decorator.py.exp b/tests/micropython/decorator.py.exp new file mode 100644 index 000000000..b37707e7c --- /dev/null +++ b/tests/micropython/decorator.py.exp @@ -0,0 +1 @@ +bytecode -- cgit v1.2.3