Skip to content

Commit

Permalink
fix msvc compile
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Oct 18, 2024
1 parent 2452c2c commit 08c9669
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
11 changes: 3 additions & 8 deletions ortools/graph/eulerian_path_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ void TestPath(const int arcs[][2], int num_nodes, int num_arcs, bool eulerian,
}

TEST(EulerianTourTest, EmptyGraph) {
const int kArcs[][2] = {};
const int kExpectedTour[] = {};
TestTour(kArcs, 0, 0, -1, true, kExpectedTour);
TestTour(nullptr, 0, 0, -1, true, nullptr);
}

// Builds a tour on the following graph:
Expand Down Expand Up @@ -103,14 +101,11 @@ TEST(EulerianTourTest, MultiCycle) {
TEST(EulerianTourTest, NonEulerian) {
const int kArcs[][2] = {{0, 1}, {1, 4}, {1, 5}, {2, 3},
{2, 4}, {2, 5}, {3, 0}};
const int kExpectedTour[] = {};
TestTour(kArcs, 6, ABSL_ARRAYSIZE(kArcs), 1, false, kExpectedTour);
TestTour(kArcs, 6, ABSL_ARRAYSIZE(kArcs), 1, false, nullptr);
}

TEST(EulerianPathTest, EmptyGraph) {
const int kArcs[][2] = {};
const int kExpectedPath[] = {};
TestPath(kArcs, 0, 0, true, kExpectedPath);
TestPath(nullptr, 0, 0, true, nullptr);
}

// Builds a path on the following graph:
Expand Down
2 changes: 1 addition & 1 deletion ortools/math_opt/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ortools_cxx_library(
"matchers.cc"
"matchers.h"
TYPE
SHARED
STATIC
LINK_LIBRARIES
absl::log
absl::status
Expand Down

0 comments on commit 08c9669

Please sign in to comment.