Sha256: c1a1ef845810f7109cb0026cee9f8250493d81af4c3bf4ef2bee502962d44052

Contents?: true

Size: 751 Bytes

Versions: 14

Compression:

Stored size: 751 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

describe Gecode::Constraint, ' (not subclassed)' do
  before do
    @con = Gecode::Constraint.new(Gecode::Model.new, {})
  end

  it 'should raise error when calling #post because it\'s not overridden' do
    lambda{ @con.post }.should raise_error(NotImplementedError)
  end
end

describe Gecode::Util do
  it 'should raise error when giving incorrect set to #constant_set_to_params' do
    lambda do 
      Gecode::Util.constant_set_to_params('hello')
    end.should raise_error(TypeError)
  end
  
  it 'should raise error when giving incorrect set to #constant_set_to_int_set' do
    lambda do 
      Gecode::Util.constant_set_to_int_set('hello')
    end.should raise_error(TypeError)
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
gecoder-with-gecode-1.1.1.1 specs/constraints/constraints.rb
gecoder-with-gecode-1.1.1 specs/constraints/constraints.rb
gecoder-1.1.1 specs/constraints/constraints.rb
gecoder-with-gecode-1.1.0 specs/constraints/constraints.rb
gecoder-1.1.0 specs/constraints/constraints.rb
gecoder-0.9.1 specs/constraints/constraints.rb
gecoder-1.0.0 specs/constraints/constraints.rb
gecoder-0.9.0 specs/constraints/constraints.rb
gecoder-with-gecode-0.9.0-x86-mswin32-60 specs/constraints/constraints.rb
gecoder-with-gecode-0.9.1-x86-mswin32-60 specs/constraints/constraints.rb
gecoder-with-gecode-0.9.0 specs/constraints/constraints.rb
gecoder-with-gecode-0.9.1 specs/constraints/constraints.rb
gecoder-with-gecode-1.0.0-x86-mswin32-60 specs/constraints/constraints.rb
gecoder-with-gecode-1.0.0 specs/constraints/constraints.rb