diff --git a/ext/or-tools/linear.cpp b/ext/or-tools/linear.cpp index 8ebf163..52788d8 100644 --- a/ext/or-tools/linear.cpp +++ b/ext/or-tools/linear.cpp @@ -47,10 +47,10 @@ namespace Rice::detail void init_linear(Rice::Module& m) { Rice::define_class_under(m, "LinearRange"); - auto rb_cLinearExpr = Rice::define_class_under(m, "LinearExpr"); - rb_cLinearExpr.define_constructor(Rice::Constructor()); + // auto rb_cLinearExpr = Rice::define_class_under(m, "LinearExpr"); + // rb_cLinearExpr.define_constructor(Rice::Constructor()); - Rice::define_class_under(m, "MPVariable") + Rice::define_class_under(m, "MPVariable") .define_method("name", &MPVariable::name) .define_method("solution_value", &MPVariable::solution_value); diff --git a/test/linear_test.rb b/test/linear_test.rb index b307072..5c0300f 100644 --- a/test/linear_test.rb +++ b/test/linear_test.rb @@ -65,7 +65,7 @@ def test_inspect assert_equal "#", x.inspect assert_equal "#", (x + 1).inspect - # assert_equal "#", ORTools::LinearExpr.new.inspect + assert_equal "#", ORTools::LinearExpr.new.inspect assert_equal "#", (x + 1 == 1).inspect end