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

This commit is contained in:
Paul Sokolovsky 2017-03-22 22:17:52 +03:00
parent 58f23def55
commit 4a4bb84e92

View File

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