specs/constraints/boolean.rb in gecoder-0.8.1 vs specs/constraints/boolean.rb in gecoder-0.8.2
- old
+ new
@@ -226,7 +226,11 @@
@b2.must_be.false
sol = @model.solve!
sol.b3.value.should be_true
end
+ it 'should raise error on right hand sides of the wrong type' do
+ lambda{ @b1.must == 'hello' }.should raise_error(TypeError)
+ end
+
it_should_behave_like 'reifiable constraint'
end
\ No newline at end of file