math_opt: rework derived_data_test
This commit is contained in:
@@ -129,7 +129,6 @@ cc_test(
|
||||
":symmetry",
|
||||
"//ortools/base:gmock_main",
|
||||
"//ortools/math_opt/testing:stream",
|
||||
"@abseil-cpp//absl/strings",
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user