summaryrefslogtreecommitdiff
path: root/tests/micropython/native_misc.py
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2023-02-02 11:51:48 +1100
committerJim Mussared <jim.mussared@gmail.com>2023-02-02 12:51:03 +1100
commit8b2748269244304854b3462cb8902952b4dcb892 (patch)
tree05c315fc329eb32bb55c71303eef2183bf818e35 /tests/micropython/native_misc.py
parentfe2a8332ff9c7cc7b66ed6da04f5a4a825309818 (diff)
top: Update Python formatting to black "2023 stable style".
See https://black.readthedocs.io/en/stable/the_black_code_style/index.html Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'tests/micropython/native_misc.py')
-rw-r--r--tests/micropython/native_misc.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/micropython/native_misc.py b/tests/micropython/native_misc.py
index f5ef807fe..f40fcb240 100644
--- a/tests/micropython/native_misc.py
+++ b/tests/micropython/native_misc.py
@@ -1,5 +1,6 @@
# tests for natively compiled functions
+
# basic test
@micropython.native
def native_test(x):
@@ -14,6 +15,7 @@ import gc
gc.collect()
native_test(3)
+
# native with 2 args
@micropython.native
def f(a, b):
@@ -22,6 +24,7 @@ def f(a, b):
f(1, 2)
+
# native with 3 args
@micropython.native
def f(a, b, c):
@@ -30,6 +33,7 @@ def f(a, b, c):
f(1, 2, 3)
+
# check not operator
@micropython.native
def f(a):