Skip to content

Commit 2727c6b

Browse files
committed
Another unit test in TestFilereader.cpp needed fixing due to ERGO-Code#2316
1 parent 9aa0310 commit 2727c6b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

check/TestFilereader.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ TEST_CASE("filereader-edge-cases", "[highs_filereader]") {
106106
if (dev_run) printf("\ngarbage.lp\n");
107107
model_file = std::string(HIGHS_DIR) + "/check/instances/" + model + ".lp";
108108
read_status = highs.readModel(model_file);
109+
// Should be HighsStatus::kError); #2316
109110
REQUIRE(read_status == HighsStatus::kOk);
110111
REQUIRE(highs.getLp().num_col_ == 0);
111112
REQUIRE(highs.getLp().num_row_ == 0);
@@ -118,7 +119,8 @@ TEST_CASE("filereader-edge-cases", "[highs_filereader]") {
118119
if (dev_run) printf("\n%s.mps\n", model.c_str());
119120
model_file = std::string(HIGHS_DIR) + "/check/instances/" + model + ".lp";
120121
read_status = highs.readModel(model_file);
121-
REQUIRE(read_status == HighsStatus::kError);
122+
// Should be HighsStatus::kError); #2316
123+
REQUIRE(read_status == HighsStatus::kOk);
122124

123125
// Gurobi cannot read
124126
//

0 commit comments

Comments
 (0)