math_opt: rework derived_data_test

This commit is contained in:
Corentin Le Molgat
2025-04-30 17:42:49 +02:00
parent ba08309567
commit 0c8d642e6a
2 changed files with 2 additions and 2 deletions

View File

@@ -129,7 +129,6 @@ cc_test(
":symmetry",
"//ortools/base:gmock_main",
"//ortools/math_opt/testing:stream",
"@abseil-cpp//absl/strings",
],
)

View File

@@ -165,7 +165,8 @@ TEST(FormatAttrValueTest, FormatsInt64) {
}
TEST(FormatAttrValueTest, FormatsDouble) {
EXPECT_EQ(FormatAttrValue(absl::SixDigits(4.2)), "4.2");
// need a double with an exact binary representation
EXPECT_EQ(FormatAttrValue(4.5), "4.5");
}
} // namespace