diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/micropython/native_const.py | 13 | ||||
-rw-r--r-- | tests/micropython/native_const.py.exp | 2 |
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/micropython/native_const.py b/tests/micropython/native_const.py new file mode 100644 index 0000000000..f2db82ca41 --- /dev/null +++ b/tests/micropython/native_const.py @@ -0,0 +1,13 @@ +# check loading constants + +@micropython.native +def f(): + return 123456789012345678901234567890 + +print(f()) + +@micropython.native +def g(): + return 1.2 + +print(g()) diff --git a/tests/micropython/native_const.py.exp b/tests/micropython/native_const.py.exp new file mode 100644 index 0000000000..eea238e6f5 --- /dev/null +++ b/tests/micropython/native_const.py.exp @@ -0,0 +1,2 @@ +123456789012345678901234567890 +1.2 |