19 #include "absl/flags/flag.h"
20 #include "gtest/gtest.h"
26 ABSL_FLAG(std::string, test_srcdir,
"",
"REQUIRED: src dir");
29 "ortools/bench/solomon/"
30 "testdata/solomon.zip",
31 "Solomon: testing archive");
32 ABSL_FLAG(std::string, solomon_test_instance,
"google2.txt",
33 "Solomon: testing instance");
37 TEST(SolomonParserTest, LoadEmptyFileName) {
38 std::string empty_file_name;
40 EXPECT_FALSE(parser.LoadFile(empty_file_name));
43 TEST(SolomonParserTest, LoadNonExistingFile) {
45 EXPECT_FALSE(parser.LoadFile(
""));
48 TEST(SolomonParserTest, LoadNonEmptyArchive) {
49 std::string empty_archive_name;
51 EXPECT_FALSE(parser.LoadFile(absl::GetFlag(FLAGS_solomon_test_instance),
55 TEST(SolomonParserTest, LoadNonExistingArchive) {
57 EXPECT_FALSE(parser.LoadFile(absl::GetFlag(FLAGS_solomon_test_instance),
""));
60 TEST(SolomonParserTest, LoadNonExistingInstance) {
62 EXPECT_FALSE(parser.LoadFile(
65 absl::GetFlag(FLAGS_solomon_test_archive))));
std::string JoinPath(absl::string_view path1, absl::string_view path2)
Collection of objects used to extend the Constraint Solver library.
TEST(LinearAssignmentTest, NullMatrix)
ABSL_FLAG(std::string, test_srcdir, "", "REQUIRED: src dir")