Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
lperron committed Sep 24, 2024
1 parent 2c94629 commit 5f120fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ortools/sat/linear_constraint_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ TEST(ComputeActivityTest, BasicBehavior) {

util_intops::StrongVector<IntegerVariable, double> values = {0.5, 0.0, 1.4,
0.0, -2.1, 0.0};
EXPECT_EQ(ComputeActivity(ct.Build(), values), 1 * 0.5 - 2 * 1.4 - 3 * 2.1);
EXPECT_NEAR(ComputeActivity(ct.Build(), values), 1 * 0.5 - 2 * 1.4 - 3 * 2.1, 1e-6);
}

TEST(ComputeActivityTest, EmptyConstraint) {
Expand Down

0 comments on commit 5f120fd

Please sign in to comment.