specs/constraints/constraints.rb in gecoder-0.5.0 vs specs/constraints/constraints.rb in gecoder-0.6.0
- old
+ new
@@ -7,12 +7,21 @@
end.should raise_error(ArgumentError)
end
end
describe Gecode::Constraints::IntEnum::Expression do
- it 'should raise error unless lhs is an enum' do
+ it 'should raise error unless lhs is an int enum' do
lambda do
Gecode::Constraints::IntEnum::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)
end.should raise_error(TypeError)
end
end
\ No newline at end of file