Skip to content
Snippets Groups Projects
Commit 9ffc3ae0 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

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

Starts with concatenation with an empty string.
parent e2e66329
No related branches found
No related tags found
No related merge requests found
# 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()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment