Sha256: 6e5a906472f3bc59c6af3146e8e2511d57c83134a5a84021aff1a1808afdb05d
Contents?: true
Size: 341 Bytes
Versions: 29
Compression:
Stored size: 341 Bytes
Contents
describe "String#start_with?" do it "returns true only if beginning match" do s = "hello" s.start_with?('h').should be_true s.start_with?('hel').should be_true s.start_with?('el').should be_false end it "returns true only if any beginning match" do "hello".start_with?('x', 'y', 'he', 'z').should be_true end end
Version data entries
29 entries across 29 versions & 1 rubygems