kopia lustrzana https://github.com/micropython/micropython-lib
string: Add test_translate.py
rodzic
b6c96e1d22
commit
f77f8cd1d4
|
@ -0,0 +1,3 @@
|
||||||
|
import string
|
||||||
|
|
||||||
|
assert string.translate("foobar", {ord("o"): "foo", ord("b"): 32, ord("r"): None}) == "ffoofoo a"
|
Ładowanie…
Reference in New Issue