Skip to content

Commit 6b226e8

Browse files
committed
Unit tests now silent; formatted
1 parent 58c1f97 commit 6b226e8

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

check/TestFilereader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ TEST_CASE("lp-duplicate-variable", "[highs_filereader]") {
485485
std::string file_content =
486486
"Minimize\n obj: 2 x + y + z\nSubject To\nr0: 2 x + y - x + 0 z >= "
487487
"2\nr1: y + x - y >= 1\nEnd\n";
488-
printf("Using .lp file\n%s", file_content.c_str());
488+
if (dev_run) printf("Using .lp file\n%s", file_content.c_str());
489489
fprintf(file, "%s", file_content.c_str());
490490
fclose(file);
491491
Highs h;

check/TestMipSolver.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -946,6 +946,7 @@ TEST_CASE("issue-2409", "[highs_test_mip_solver]") {
946946
const HighsModelStatus require_model_status = HighsModelStatus::kOptimal;
947947
const double optimal_objective = 0.1;
948948
Highs highs;
949+
highs.setOptionValue("output_flag", dev_run);
949950
REQUIRE(highs.passModel(lp) == HighsStatus::kOk);
950951
if (dev_run) printf("Testing that presolve reduces the problem to empty\n");
951952
REQUIRE(highs.presolve() == HighsStatus::kOk);
@@ -982,6 +983,7 @@ TEST_CASE("issue-2432", "[highs_test_mip_solver]") {
982983
const HighsModelStatus require_model_status = HighsModelStatus::kOptimal;
983984
const double optimal_objective = -3777.57124352;
984985
Highs highs;
986+
highs.setOptionValue("output_flag", dev_run);
985987
REQUIRE(highs.passModel(lp) == HighsStatus::kOk);
986988
if (dev_run) printf("Testing that presolve reduces the problem\n");
987989
REQUIRE(highs.presolve() == HighsStatus::kOk);

check/TestRays.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include "catch.hpp"
55
#include "lp_data/HConst.h"
66

7-
const bool dev_run = true; // false;
7+
const bool dev_run = false; // true; //
88
const double zero_ray_value_tolerance = 1e-14;
99

1010
void reportRay(std::string message, HighsInt dim, double* computed,

0 commit comments

Comments
 (0)