diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-01-21 05:00:21 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-01-21 05:01:21 +0200 |
commit | 4c316552c16fa2bcb77e007d330dc32beaf6e652 (patch) | |
tree | 26962d3426c8057ec6365e1b2546680e584997c4 /tests | |
parent | 7380a837802b4630bdcef6e01cd5be32f92750ca (diff) |
Implement str.split(None).
Note that splitting by explicit string is not implemented so far.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/basics/string_split.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/basics/string_split.py b/tests/basics/string_split.py new file mode 100644 index 000000000..f73cb4291 --- /dev/null +++ b/tests/basics/string_split.py @@ -0,0 +1,7 @@ +print("a b".split()) +print(" a b ".split(None)) +print(" a b ".split(None, 1)) +print(" a b ".split(None, 2)) +print(" a b c ".split(None, 1)) +print(" a b c ".split(None, 0)) +print(" a b c ".split(None, -1)) |