diff options
| author | Glenn Ruben Bakke <glennbakke@gmail.com> | 2017-02-07 22:26:13 +0100 |
|---|---|---|
| committer | Glenn Ruben Bakke <glennbakke@gmail.com> | 2017-02-07 22:26:13 +0100 |
| commit | 4cf7fd151e98a3d842eb5c9428545cb67ddd57ee (patch) | |
| tree | 947f265a2d498f4879bab3c7d19591133c56c1a0 /tests/micropython/heapalloc_str.py | |
| parent | 9397583f6c99533fc4c0a2753126120a8552ba4c (diff) | |
| parent | 21f08524baf11e62384814b7cb8fcd2b5a8998fb (diff) | |
Merge branch 'master' into nrf52
Diffstat (limited to 'tests/micropython/heapalloc_str.py')
| -rw-r--r-- | tests/micropython/heapalloc_str.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/micropython/heapalloc_str.py b/tests/micropython/heapalloc_str.py new file mode 100644 index 000000000..0df39d3c0 --- /dev/null +++ b/tests/micropython/heapalloc_str.py @@ -0,0 +1,14 @@ +# String operations which don't require allocation +import micropython + +micropython.heap_lock() + +b"" + b"" +b"" + b"1" +b"2" + b"" + +"" + "" +"" + "1" +"2" + "" + +micropython.heap_unlock() |
