Sha256: 4c470bba6b5082796bf57aa2357b2c8d14e4e67199f8828c3ff99dc68c56c245

Contents?: true

Size: 912 Bytes

Versions: 9

Compression:

Stored size: 912 Bytes

Contents

require 'pione/test-helper'

describe 'Lang::TicketExpr' do
  it 'should equal' do
    Lang::TicketExpr.new("T").should == Lang::TicketExpr.new("T")
  end

  it 'should not equal' do
    Lang::TicketExpr.new("T").should.not == Lang::TicketExpr.new("t")
  end

  it 'should get name' do
    Lang::TicketExpr.new("T").name.should == "T"
  end
end

describe "Pione::Lang::TicketExprSequence" do
  before do
    @x = Lang::TicketExpr.new("X")
    @y = Lang::TicketExpr.new("Y")
    @seq = Lang::TicketExprSequence.new([@x, @y])
  end

  it "should equal" do
    @seq.should == Lang::TicketExprSequence.new([@x, @y])
  end

  it "should not equal" do
    @seq.should != Lang::TicketExprSequence.new([@y, @x])
  end

  it "should get ticket names" do
    @seq.names.should.include("X")
    @seq.names.should.include("Y")
    @seq.names.should.not.include("Z")
  end

  TestHelper::Lang.test_pione_method(__FILE__)
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pione-0.5.0 test/lang/spec_ticket-expr.rb
pione-0.5.0.alpha.2 test/lang/spec_ticket-expr.rb
pione-0.5.0.alpha.1 test/lang/spec_ticket-expr.rb
pione-0.4.2 test/lang/spec_ticket-expr.rb
pione-0.4.1 test/lang/spec_ticket-expr.rb
pione-0.4.0 test/lang/spec_ticket-expr.rb
pione-0.3.2 test/lang/spec_ticket-expr.rb
pione-0.3.1 test/lang/spec_ticket-expr.rb
pione-0.3.0 test/lang/spec_ticket-expr.rb