From fbe4ad1dc92a952c6529dfdde11be2ac3800663f Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Fri, 10 Jan 2025 10:29:58 -0500 Subject: [PATCH] common Apple and Windows assertions --- gtsam/linear/tests/testGaussianBayesNet.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gtsam/linear/tests/testGaussianBayesNet.cpp b/gtsam/linear/tests/testGaussianBayesNet.cpp index 32534a1e7..6e4576541 100644 --- a/gtsam/linear/tests/testGaussianBayesNet.cpp +++ b/gtsam/linear/tests/testGaussianBayesNet.cpp @@ -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 }