From 65365778fd40bddddab83e3593da9b88992824ef Mon Sep 17 00:00:00 2001 From: xbe Date: Thu, 30 Jan 2014 22:16:47 -0800 Subject: [PATCH] Add tests for str.strip --- tests/basics/string_strip.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/basics/string_strip.py 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"))