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

Version Path
rhodes-3.2.2 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-3.2.2.beta spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-3.2.1 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-3.2.0 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-3.2.0.beta.9 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-3.2.0.beta.8 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-3.2.0.beta.7 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-3.2.0.beta.6 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-3.2.0.beta.5 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-3.2.0.beta.4 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-3.2.0.beta.2 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-3.2.0.beta.1 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-3.1.1 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-3.1.1.beta spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-3.1.0 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-3.1.0.beta.5 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-3.1.0.beta.4 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-3.1.0.beta.3 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-3.1.0.beta.2 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-3.1.0.beta.1 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb