Skip to content

Commit 4a73f05

Browse files
committed
Add MBC string examples for String#split specs.
1 parent 78d5070 commit 4a73f05

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spec/ruby/core/string/split_spec.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,12 @@
2929
"1,2,,3,4,,".split(',').should == ["1", "2", "", "3", "4"]
3030
"1,2,,3,4,,".split(',', 0).should == ["1", "2", "", "3", "4"]
3131
" a b c\nd ".split(" ").should == ["", "a", "b", "c\nd"]
32+
" a あ c\nd ".split(" ").should == ["", "a", "あ", "c\nd"]
3233
"hai".split("hai").should == []
3334
",".split(",").should == []
3435
",".split(",", 0).should == []
36+
"あ".split("あ").should == []
37+
"あ".split("あ", 0).should == []
3538
end
3639

3740
it "does not suppress trailing empty fields when a positive limit is given" do

0 commit comments

Comments
 (0)