Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
ac81cee3
Commit
ac81cee3
authored
Sep 27, 2018
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests/micropython: Test loading const objs in native and viper funcs.
parent
2e862332
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
40 additions
and
0 deletions
+40
-0
tests/micropython/native_const.py
tests/micropython/native_const.py
+14
-0
tests/micropython/native_const.py.exp
tests/micropython/native_const.py.exp
+2
-0
tests/micropython/viper_const.py
tests/micropython/viper_const.py
+14
-0
tests/micropython/viper_const.py.exp
tests/micropython/viper_const.py.exp
+2
-0
tests/micropython/viper_const_intbig.py
tests/micropython/viper_const_intbig.py
+7
-0
tests/micropython/viper_const_intbig.py.exp
tests/micropython/viper_const_intbig.py.exp
+1
-0
No files found.
tests/micropython/native_const.py
0 → 100644
View file @
ac81cee3
# test loading constants in native functions
@
micropython
.
native
def
f
():
return
b'bytes'
print
(
f
())
@
micropython
.
native
def
f
():
@
micropython
.
native
def
g
():
return
123
return
g
print
(
f
()())
tests/micropython/native_const.py.exp
0 → 100644
View file @
ac81cee3
b'bytes'
123
tests/micropython/viper_const.py
0 → 100644
View file @
ac81cee3
# test loading constants in viper functions
@
micropython
.
viper
def
f
():
return
b'bytes'
print
(
f
())
@
micropython
.
viper
def
f
():
@
micropython
.
viper
def
g
()
->
int
:
return
123
return
g
print
(
f
()())
tests/micropython/viper_const.py.exp
0 → 100644
View file @
ac81cee3
b'bytes'
123
tests/micropython/viper_const_intbig.py
0 → 100644
View file @
ac81cee3
# check loading constants
@
micropython
.
viper
def
f
():
return
123456789012345678901234567890
print
(
f
())
tests/micropython/viper_const_intbig.py.exp
0 → 100644
View file @
ac81cee3
123456789012345678901234567890
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment