specs/int_var.rb in gecoder-0.6.0 vs specs/int_var.rb in gecoder-0.6.1
- old
+ new
@@ -73,11 +73,11 @@
describe Gecode::FreeIntVar, ' (with non-range domain of size > 1)' do
before do
@domain = [-3, -2, -1, 1]
model = Gecode::Model.new
- @var = model.int_var(*@domain)
+ @var = model.int_var(@domain)
end
it_should_behave_like 'non-empty int variable'
it 'should not be assigned' do
@@ -111,11 +111,11 @@
end
end
describe Gecode::FreeIntVar, ' (assigned)' do
before do
- @domain = [1]
+ @domain = 1
model = Gecode::Model.new
@var = model.int_var(*@domain)
end
it 'should be assigned' do
@@ -129,10 +129,10 @@
describe Gecode::FreeIntVar, ' (not assigned)' do
before do
@domain = 1..2
model = Gecode::Model.new
- @var = model.int_var(*@domain)
+ @var = model.int_var(@domain)
end
it 'should not be assigned' do
@var.should_not be_assigned
end
\ No newline at end of file