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

pull/2937/merge
Paul Sokolovsky 2017-03-22 22:17:52 +03:00
rodzic 58f23def55
commit 4a4bb84e92
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

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