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
# 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()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment