specs/enum_wrapper.rb in gecoder-0.4.0 vs specs/enum_wrapper.rb in gecoder-0.5.0

- old
+ new

@@ -78,14 +78,25 @@ end describe Gecode::BoolEnumMethods do before do @model = Gecode::Model.new - @int_enum = @model.bool_var_array(3) + @bool_enum = @model.bool_var_array(3) end it 'should convert to a bool var array' do - @int_enum.to_bool_var_array.should be_kind_of(Gecode::Raw::BoolVarArray) + @bool_enum.to_bool_var_array.should be_kind_of(Gecode::Raw::BoolVarArray) + end +end + +describe Gecode::SetEnumMethods do + before do + @model = Gecode::Model.new + @set_enum = @model.set_var_array(3, [0], 0..1) + end + + it 'should convert to a set var array' do + @set_enum.to_set_var_array.should be_kind_of(Gecode::Raw::SetVarArray) end end describe Gecode::FixnumEnumMethods do before do \ No newline at end of file