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-7.6.0 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-7.5.1 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-7.4.1 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-7.1.17 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-6.2.0 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-6.0.11 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-5.5.18 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-5.5.17 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-5.5.15 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-5.5.0.22 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-5.5.2 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-5.5.0.7 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-5.5.0.3 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-5.5.0 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
tauplatform-1.0.3 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
tauplatform-1.0.2 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
tauplatform-1.0.1 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-3.5.1.12 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-3.3.5 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb
rhodes-3.4.2 spec/framework_spec/app/spec/core/regexp/shared/equal_value.rb