Skip to content

Commit

Permalink
common Apple and Windows assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
varunagrawal committed Jan 10, 2025
1 parent 438bead commit fbe4ad1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions gtsam/linear/tests/testGaussianBayesNet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,15 +188,12 @@ TEST(GaussianBayesNet, sample) {
EXPECT_LONGS_EQUAL(2, actual.size());

// regressions
#ifdef __APPLE__
#ifdef __APPLE__ || _WIN32
EXPECT(assert_equal(Vector2(20.0129382, 40.0039798), actual[X(1)], 1e-5));
EXPECT(assert_equal(Vector2(110.032083, 230.039811), actual[X(0)], 1e-5));
#elif __linux__
EXPECT(assert_equal(Vector2(20.0070499, 39.9942591), actual[X(1)], 1e-5));
EXPECT(assert_equal(Vector2(109.976501, 229.990945), actual[X(0)], 1e-5));
#elif _WIN32
EXPECT(assert_equal(Vector2(20.0129382, 40.0039798), actual[X(1)], 1e-5));
EXPECT(assert_equal(Vector2(110.032083, 230.039811), actual[X(0)], 1e-5));
#endif
}

Expand Down

0 comments on commit fbe4ad1

Please sign in to comment.