From 20bf2fa69a18c5339f2b965b977cbe7628248708 Mon Sep 17 00:00:00 2001 From: AJPfleger Date: Sun, 5 Nov 2023 17:29:38 +0100 Subject: [PATCH] fix --- .../Core/Detector/IndexedSurfacesGeneratorTests.cpp | 8 ++++---- Tests/UnitTests/Core/Detector/PortalGeneratorsTests.cpp | 6 +++--- Tests/UnitTests/Core/Geometry/SimpleGeometryTests.cpp | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Tests/UnitTests/Core/Detector/IndexedSurfacesGeneratorTests.cpp b/Tests/UnitTests/Core/Detector/IndexedSurfacesGeneratorTests.cpp index de6a6e91eeb..2943dc62673 100644 --- a/Tests/UnitTests/Core/Detector/IndexedSurfacesGeneratorTests.cpp +++ b/Tests/UnitTests/Core/Detector/IndexedSurfacesGeneratorTests.cpp @@ -67,7 +67,7 @@ BOOST_AUTO_TEST_CASE(RingDisc1D) { const auto* instance = indexedRing.instance(); auto castedDelegate = dynamic_cast(instance); - BOOST_CHECK_NE(castedDelegate, nullptr); + BOOST_CHECK(castedDelegate != nullptr); const auto& chainedUpdators = castedDelegate->updators; const auto& indexedSurfaces = @@ -113,7 +113,7 @@ BOOST_AUTO_TEST_CASE(RingDisc1DWithSupport) { const auto* instance = indexedRing.instance(); auto castedDelegate = dynamic_cast(instance); - BOOST_CHECK_NE(castedDelegate, nullptr); + BOOST_CHECK(castedDelegate != nullptr); const auto& chainedUpdators = castedDelegate->updators; const auto& indexedSurfaces = @@ -161,7 +161,7 @@ BOOST_AUTO_TEST_CASE(RingDisc2D) { const auto* instance = indexedRing.instance(); auto castedDelegate = dynamic_cast(instance); - BOOST_CHECK_NE(castedDelegate, nullptr); + BOOST_CHECK(castedDelegate != nullptr); const auto& chainedUpdators = castedDelegate->updators; const auto& indexedSurfaces = @@ -208,7 +208,7 @@ BOOST_AUTO_TEST_CASE(RingDisc2DFine) { const auto* instance = indexedRing.instance(); auto castedDelegate = dynamic_cast(instance); - BOOST_CHECK_NE(castedDelegate, nullptr); + BOOST_CHECK(castedDelegate != nullptr); const auto& chainedUpdators = castedDelegate->updators; const auto& indexedSurfaces = diff --git a/Tests/UnitTests/Core/Detector/PortalGeneratorsTests.cpp b/Tests/UnitTests/Core/Detector/PortalGeneratorsTests.cpp index 9470c15ee26..dba206a1482 100644 --- a/Tests/UnitTests/Core/Detector/PortalGeneratorsTests.cpp +++ b/Tests/UnitTests/Core/Detector/PortalGeneratorsTests.cpp @@ -59,7 +59,7 @@ BOOST_AUTO_TEST_CASE(CylindricalPortalGenerator) { BOOST_CHECK_EQUAL(cBarPortals.size(), 3u); // Check they are not nullptrs for (const auto& p : cBarPortals) { - BOOST_CHECK_NE(p, nullptr); + BOOST_CHECK(p != nullptr); } // Pointing inside the volume @@ -89,7 +89,7 @@ BOOST_AUTO_TEST_CASE(CylindricalPortalGenerator) { BOOST_CHECK_EQUAL(cTubePortals.size(), 4u); // Check they are not nullptrs for (const auto& p : cTubePortals) { - BOOST_CHECK_NE(p, nullptr); + BOOST_CHECK(p != nullptr); } testDetectorVolumeUpdate(*cTubePortals[0], negPos, negDir, dVolume.get()); @@ -116,7 +116,7 @@ BOOST_AUTO_TEST_CASE(CylindricalPortalGenerator) { BOOST_CHECK_EQUAL(cTubeSectorPortals.size(), 6u); // Check they are not nullptrs for (const auto& p : cTubeSectorPortals) { - BOOST_CHECK_NE(p, nullptr); + BOOST_CHECK(p != nullptr); } // Pointing inside the volume diff --git a/Tests/UnitTests/Core/Geometry/SimpleGeometryTests.cpp b/Tests/UnitTests/Core/Geometry/SimpleGeometryTests.cpp index db74156d1f2..50ca0a64cc2 100644 --- a/Tests/UnitTests/Core/Geometry/SimpleGeometryTests.cpp +++ b/Tests/UnitTests/Core/Geometry/SimpleGeometryTests.cpp @@ -121,7 +121,7 @@ BOOST_AUTO_TEST_CASE(SimpleGeometryTest) { TrackingGeometryBuilder tgBuilder(tgbConfig); auto tGeometry = tgBuilder.trackingGeometry(tgContext); - BOOST_CHECK_NE(tGeometry, nullptr); + BOOST_CHECK(tGeometry != nullptr); } } // namespace Test } // namespace Acts