Hi, The following Groovy snippet produces weird results to me :
def s = "123456"
assert s.split("").size() == s.size()
Results in :
Assertion failed:
assert s.split("").size() == s.size()
| | | | | |
| | 7 | | 6
| | | 123456
| | false
| [, 1, 2, 3, 4, 5, 6]
123456
Is there something I've missed on the split() method behaviour or is this a real bug ?