You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
Implement str.replace and add tests for it.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
print("".replace("a", "b"))
|
||||
print("aaa".replace("a", "b", 0))
|
||||
print("aaa".replace("a", "b", -5))
|
||||
print("asdfasdf".replace("a", "b"))
|
||||
print("aabbaabbaabbaa".replace("aa", "cc", 3))
|
||||
print("a".replace("aa", "bb"))
|
||||
print("testingtesting".replace("ing", ""))
|
||||
print("testINGtesting".replace("ing", "ING!"))
|
||||
Reference in New Issue
Block a user