diff options
Diffstat (limited to 'tests/micropython/native_const.py')
-rw-r--r-- | tests/micropython/native_const.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/micropython/native_const.py b/tests/micropython/native_const.py new file mode 100644 index 000000000..f2db82ca4 --- /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()) |