Skip to content

Commit 57e5065

Browse files
author
Julian Hall
committed
Fixed assert error
1 parent 730fe9b commit 57e5065

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

check/TestRunData.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#include <cassert>
12
#include <cstdio>
23

34
#include "HCheckConfig.h"
@@ -74,8 +75,8 @@ TEST_CASE("highs-run-data-presolve", "[highs_run_data]") {
7475
const bool reduces_to_empty = false;
7576
for (auto& solver : solvers) {
7677
h.setOptionValue("solver", solver);
77-
// if (dev_run)
78-
printf("\n!>>>>%s-%s<<<<\n", model.c_str(), solver.c_str());
78+
if (dev_run)
79+
printf("\n!>>>>%s-%s<<<<\n", model.c_str(), solver.c_str());
7980

8081
REQUIRE(h.presolve() == HighsStatus::kOk);
8182
HighsLp presolved_lp = h.getPresolvedLp();
@@ -92,7 +93,8 @@ TEST_CASE("highs-run-data-presolve", "[highs_run_data]") {
9293

9394
void testRunData(Highs& h, const bool irreducible, const bool reduces_to_empty,
9495
const std::string& run_data_file) {
95-
assert(irreducible != reduces_to_empty);
96+
97+
assert(!(irreducible && reduces_to_empty));
9698
const HighsRunData& run_data = h.getRunData();
9799
const HighsLp& lp = h.getLp();
98100

0 commit comments

Comments
 (0)