summaryrefslogtreecommitdiff
path: root/tests/micropython/viper_subscr.py.exp
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-06-04 11:52:16 +0100
committerDamien George <damien.p.george@gmail.com>2015-06-04 11:52:16 +0100
commit4d9cad180dbaf25cdbb9dd0c54a637483db933a7 (patch)
treedc736f2530cd66c726eaeda903c1d03fb646fffc /tests/micropython/viper_subscr.py.exp
parenta3cf4ea2f69e3568944bad7ee1a017b7095efc3d (diff)
py: Implement implicit cast to obj for viper load/store index/value.
This allows to do "ar[i]" and "ar[i] = val" in viper when ar is a Python object and i and/or val are native viper types (eg ints). Patch also includes tests for this feature.
Diffstat (limited to 'tests/micropython/viper_subscr.py.exp')
-rw-r--r--tests/micropython/viper_subscr.py.exp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/micropython/viper_subscr.py.exp b/tests/micropython/viper_subscr.py.exp
new file mode 100644
index 000000000..e68032ce1
--- /dev/null
+++ b/tests/micropython/viper_subscr.py.exp
@@ -0,0 +1,4 @@
+[1, 2, 3]
+1
+2
+3