Skip to content

Commit 77e3b43

Browse files
committed
Cleaned up unit test
1 parent 644c9b5 commit 77e3b43

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

check/TestPresolve.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -737,24 +737,26 @@ TEST_CASE("presolve-issue-2446", "[highs_test_presolve]") {
737737

738738
TEST_CASE("presolve-solve-postsolve-no-col-dual", "[highs_test_presolve]") {
739739
Highs highs;
740-
// highs.setOptionValue("output_flag", dev_run);
740+
highs.setOptionValue("output_flag", dev_run);
741741
std::string model_file =
742742
std::string(HIGHS_DIR) + "/check/instances/afiro.mps";
743743
highs.readModel(model_file);
744744
highs.presolve();
745745
HighsLp presolved_lp = highs.getPresolvedLp();
746746
Highs highs1;
747-
// highs1.setOptionValue("output_flag", dev_run);
747+
highs1.setOptionValue("output_flag", dev_run);
748748
highs1.setOptionValue("presolve", kHighsOffString);
749-
highs1.setOptionValue("solver", kPdlpString);
750749
highs1.passModel(presolved_lp);
751750
highs1.run();
752751
HighsSolution solution = highs1.getSolution();
753752

754753
// Perform postsolve using the optimal solution and basis for the
755754
// presolved model
755+
REQUIRE(highs.postsolve(solution) == HighsStatus::kOk);
756+
757+
// If row duals are supplied, then column duals must also be suppplied
756758
solution.col_dual.clear();
757-
highs.postsolve(solution);
759+
REQUIRE(highs.postsolve(solution) == HighsStatus::kError);
758760

759761
highs.resetGlobalScheduler(true);
760762
}

0 commit comments

Comments
 (0)