Sha256: 78ecc68891c702e6cec18dd3d8f651638eae0f548a0bdd070a98d60569708423
Contents?: true
Size: 275 Bytes
Versions: 52
Compression:
Stored size: 275 Bytes
Contents
require File.expand_path('../../../spec_helper', __FILE__) describe "MatchData#end" do it "returns the offset of the end of the nth element" do /(.)(.)(\d+)(\d)/.match("THX1138.").end(0).should == 7 /(.)(.)(\d+)(\d)/.match("THX1138.").end(2).should == 3 end end
Version data entries
52 entries across 52 versions & 2 rubygems