Skip to content

Commit 0c8d642

Browse files
committed
math_opt: rework derived_data_test
1 parent ba08309 commit 0c8d642

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ortools/math_opt/elemental/BUILD.bazel

-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ cc_test(
129129
":symmetry",
130130
"//ortools/base:gmock_main",
131131
"//ortools/math_opt/testing:stream",
132-
"@abseil-cpp//absl/strings",
133132
],
134133
)
135134

ortools/math_opt/elemental/derived_data_test.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ TEST(FormatAttrValueTest, FormatsInt64) {
165165
}
166166

167167
TEST(FormatAttrValueTest, FormatsDouble) {
168-
EXPECT_EQ(FormatAttrValue(absl::SixDigits(4.2)), "4.2");
168+
// need a double with an exact binary representation
169+
EXPECT_EQ(FormatAttrValue(4.5), "4.5");
169170
}
170171

171172
} // namespace

0 commit comments

Comments
 (0)