Sha256: 54a1781a78a9c5b53063e3d6817dbbfc2aa2801955edaa15a6b0ff264df0afe3
Contents?: true
Size: 380 Bytes
Versions: 48
Compression:
Stored size: 380 Bytes
Contents
require File.expand_path('spec/spec_helper') describe String do describe :naive_split do it "splits repeated pattern" do "aaa".naive_split('a').should == ['','','',''] end it "splits normal stuff" do "abacad".naive_split('a').should == ['','b','c','d'] end it "splits empty into 1" do "".naive_split('a').should == [''] end end end
Version data entries
48 entries across 48 versions & 1 rubygems