Sha256: fa22f2a9dc7363d8adb163caf2b7ecebc7eea12ad6ef9b0363b811a226e746c8
Contents?: true
Size: 680 Bytes
Versions: 135
Compression:
Stored size: 680 Bytes
Contents
describe :regexp_eql, :shared => true do it "is true if self and other have the same pattern" do /abc/.send(@method, /abc/).should == true /abc/.send(@method, /abd/).should == false end it "is true if self and other have the same character set code" do /abc/.send(@method, /abc/x).should == false /abc/x.send(@method, /abc/x).should == true /abc/u.send(@method, /abc/n).should == false /abc/u.send(@method, /abc/u).should == true /abc/n.send(@method, /abc/n).should == true end it "is true if other has the same #casefold? values" do /abc/.send(@method, /abc/i).should == false /abc/i.send(@method, /abc/i).should == true end end
Version data entries
135 entries across 135 versions & 2 rubygems