specs/constraints/constraints.rb in gecoder-0.8.0 vs specs/constraints/constraints.rb in gecoder-0.8.1

- old
+ new

@@ -15,9 +15,18 @@ :lhs => 'foo', :negate => false) end.should raise_error(TypeError) end end +describe Gecode::Constraints::BoolEnum::Expression do + it 'should raise error unless lhs is a bool enum' do + lambda do + Gecode::Constraints::BoolEnum::Expression.new(Gecode::Model.new, + :lhs => 'foo', :negate => false) + end.should raise_error(TypeError) + end +end + describe Gecode::Constraints::SetEnum::Expression do it 'should raise error unless lhs is a set enum' do lambda do Gecode::Constraints::SetEnum::Expression.new(Gecode::Model.new, :lhs => 'foo', :negate => false) \ No newline at end of file