Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AJPfleger committed Nov 5, 2023
1 parent 54bec8f commit 20bf2fa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ BOOST_AUTO_TEST_CASE(RingDisc1D) {
const auto* instance = indexedRing.instance();
auto castedDelegate = dynamic_cast<const DelegateType*>(instance);

BOOST_CHECK_NE(castedDelegate, nullptr);
BOOST_CHECK(castedDelegate != nullptr);

const auto& chainedUpdators = castedDelegate->updators;
const auto& indexedSurfaces =
Expand Down Expand Up @@ -113,7 +113,7 @@ BOOST_AUTO_TEST_CASE(RingDisc1DWithSupport) {
const auto* instance = indexedRing.instance();
auto castedDelegate = dynamic_cast<const DelegateType*>(instance);

BOOST_CHECK_NE(castedDelegate, nullptr);
BOOST_CHECK(castedDelegate != nullptr);

const auto& chainedUpdators = castedDelegate->updators;
const auto& indexedSurfaces =
Expand Down Expand Up @@ -161,7 +161,7 @@ BOOST_AUTO_TEST_CASE(RingDisc2D) {
const auto* instance = indexedRing.instance();
auto castedDelegate = dynamic_cast<const DelegateType*>(instance);

BOOST_CHECK_NE(castedDelegate, nullptr);
BOOST_CHECK(castedDelegate != nullptr);

const auto& chainedUpdators = castedDelegate->updators;
const auto& indexedSurfaces =
Expand Down Expand Up @@ -208,7 +208,7 @@ BOOST_AUTO_TEST_CASE(RingDisc2DFine) {
const auto* instance = indexedRing.instance();
auto castedDelegate = dynamic_cast<const DelegateType*>(instance);

BOOST_CHECK_NE(castedDelegate, nullptr);
BOOST_CHECK(castedDelegate != nullptr);

const auto& chainedUpdators = castedDelegate->updators;
const auto& indexedSurfaces =
Expand Down
6 changes: 3 additions & 3 deletions Tests/UnitTests/Core/Detector/PortalGeneratorsTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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());
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Tests/UnitTests/Core/Geometry/SimpleGeometryTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 20bf2fa

Please sign in to comment.