Sha256: 363b600c242523180905ea04be3d2ea3cd47ccfc725f2776ffaf34f067663846

Contents?: true

Size: 534 Bytes

Versions: 16

Compression:

Stored size: 534 Bytes

Contents

require "spec_helper"

describe Nydp::StringFragmentToken do
  it "is equal to another token with the same content" do
    t1 = Nydp::StringFragmentToken.new "foo", "bar"
    t2 = Nydp::StringFragmentToken.new "foo", "zub"
    expect(t1).to eq t2
  end

  it "is not equal to another string with the same content" do
    t1 = Nydp::StringFragmentToken.new "foo", "bar"
    expect(t1).not_to eq "foo"
  end

  it "is not equal to nil" do
    t1 = Nydp::StringFragmentToken.new "foo", "bar"
    expect(t1).not_to eq Nydp::NIL
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
nydp-0.6.0 spec/string_token_spec.rb
nydp-0.5.1 spec/string_token_spec.rb
nydp-0.5.0 spec/string_token_spec.rb
nydp-0.4.6 spec/string_token_spec.rb
nydp-0.4.5 spec/string_token_spec.rb
nydp-0.4.3 spec/string_token_spec.rb
nydp-0.4.2 spec/string_token_spec.rb
nydp-0.4.1 spec/string_token_spec.rb
nydp-0.4.0 spec/string_token_spec.rb
nydp-0.3.0 spec/string_token_spec.rb
nydp-0.2.6 spec/string_token_spec.rb
nydp-0.2.5 spec/string_token_spec.rb
nydp-0.2.3 spec/string_token_spec.rb
nydp-0.2.2 spec/string_token_spec.rb
nydp-0.2.1 spec/string_token_spec.rb
nydp-0.2.0 spec/string_token_spec.rb