diff options
author | xbe <xbe@machine> | 2014-01-30 22:16:47 -0800 |
---|---|---|
committer | xbe <xbe@machine> | 2014-01-30 22:16:47 -0800 |
commit | 65365778fd40bddddab83e3593da9b88992824ef (patch) | |
tree | 9d8e000086bc048a5085a26be0baeae4ec1b4512 /tests/basics/string_strip.py | |
parent | 3f759b71c63f5e01df18a6e204c50f78d1b6a20b (diff) | |
download | micropython-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.py | 6 |
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")) |