tests/heapalloc_str: Test for alloc-free string operations.

Starts with concatenation with an empty string.
pull/2140/head
Paul Sokolovsky 2017-01-27 00:45:30 +03:00
rodzic e2e663291d
commit 9ffc3ae0e7
2 zmienionych plików z 14 dodań i 0 usunięć

Wyświetl plik

@ -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()