Sha256: 16045facc1e57a30d2e7007c32800cd2692318332148ffd4374ddd9871450d1e
Contents?: true
Size: 293 Bytes
Versions: 18
Compression:
Stored size: 293 Bytes
Contents
require 'cxxproject' describe String do it 'should remove from start if matching' do s = "abcd" s.remove_from_start('abc').should == 'd' end it 'should not change the string if the start does not match' do "abcd".remove_from_start('z').should == 'abcd' end end
Version data entries
18 entries across 18 versions & 1 rubygems