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

tests/heapalloc_str: Test no-replacement case for str.replace().

parent 58f23def
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@ import micropython
micropython.heap_lock()
# Concatenating empty string returns original string
b"" + b""
b"" + b"1"
b"2" + b""
......@@ -11,4 +12,7 @@ b"2" + b""
"" + "1"
"2" + ""
# If no replacements done, returns original string
"foo".replace(",", "_")
micropython.heap_unlock()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment