summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/string_strip.py
diff options
context:
space:
mode:
authorxbe <xbe@machine>2014-01-30 22:16:47 -0800
committerxbe <xbe@machine>2014-01-30 22:16:47 -0800
commit65365778fd40bddddab83e3593da9b88992824ef (patch)
tree9d8e000086bc048a5085a26be0baeae4ec1b4512 /tests/basics/string_strip.py
parent3f759b71c63f5e01df18a6e204c50f78d1b6a20b (diff)
downloadmicropython-65365778fd40bddddab83e3593da9b88992824ef.tar.gz
micropython-65365778fd40bddddab83e3593da9b88992824ef.zip
Add tests for str.strip
Diffstat (limited to 'tests/basics/string_strip.py')
-rw-r--r--tests/basics/string_strip.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/basics/string_strip.py b/tests/basics/string_strip.py
new file mode 100644
index 0000000000..518dfd66ec
--- /dev/null
+++ b/tests/basics/string_strip.py
@@ -0,0 +1,6 @@
+print("".strip())
+print(" \t\n\r\v\f".strip())
+print(" T E S T".strip())
+print("abcabc".strip("ce"))
+print("aaa".strip("b"))
+print("abc efg ".strip("g a"))