aboutsummaryrefslogtreecommitdiff
path: root/tests/pybnative
diff options
context:
space:
mode:
authorDamien George2021-01-18 00:29:18 +1100
committerDamien George2021-01-29 23:57:10 +1100
commit7a97e4351b4d78f64c3d1fbecd497481e649a83f (patch)
treec55269dfa095a93542d93945fda1e386ba3ef7c2 /tests/pybnative
parentc9f4c5acd6278a7a8f3376867d2927efd00aefa6 (diff)
tests: Move native for test from pybnative to micropython.
And make it generic so it can be run on any target. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/pybnative')
-rw-r--r--tests/pybnative/for.py19
-rw-r--r--tests/pybnative/for.py.exp8
2 files changed, 0 insertions, 27 deletions
diff --git a/tests/pybnative/for.py b/tests/pybnative/for.py
deleted file mode 100644
index 50177a9ba..000000000
--- a/tests/pybnative/for.py
+++ /dev/null
@@ -1,19 +0,0 @@
-import pyb
-
-
-@micropython.native
-def f1(n):
- for i in range(n):
- print(i)
-
-
-f1(4)
-
-
-@micropython.native
-def f2(r):
- for i in r:
- print(i)
-
-
-f2(range(4))
diff --git a/tests/pybnative/for.py.exp b/tests/pybnative/for.py.exp
deleted file mode 100644
index d4dc73eff..000000000
--- a/tests/pybnative/for.py.exp
+++ /dev/null
@@ -1,8 +0,0 @@
-0
-1
-2
-3
-0
-1
-2
-3