summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/t/string.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/t/string.rb b/test/t/string.rb
index d7182fc38..718b005a9 100644
--- a/test/t/string.rb
+++ b/test/t/string.rb
@@ -276,8 +276,10 @@ end
assert('String#split', '15.2.10.5.35') do
# without RegExp behavior is actually unspecified
a = 'abc abc abc'.split
+ b = 'a,b,c,,d'.split(',')
- a == ['abc', 'abc', 'abc']
+ a == ['abc', 'abc', 'abc'] and
+ b == ["a", "b", "c", "", "d"]
end
# TODO ATM broken assert('String#sub', '15.2.10.5.36') do