Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminhuth committed Nov 26, 2024
1 parent 9aa87ed commit 6f9e476
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tests/UnitTests/Plugins/Json/JsonSurfacesReaderTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ struct FileFixture {
f << j.dump(2);
}

~FileFixture() {
// std::filesystem::remove(filename);
}
~FileFixture() { std::filesystem::remove(filename); }
};

FileFixture fileFixture;
Expand All @@ -73,6 +71,7 @@ BOOST_AUTO_TEST_CASE(surface_reading_test) {
auto readBackSurfaces =
Acts::JsonSurfacesReader::readVector({filename, {"foo"}});

BOOST_REQUIRE_EQUAL(surfaces.size(), readBackSurfaces.size());
for (auto [refSurface, surface] : Acts::zip(surfaces, readBackSurfaces)) {
BOOST_CHECK(
refSurface->transform({}).isApprox(surface->transform({}), 1.e-4));
Expand All @@ -86,6 +85,7 @@ BOOST_AUTO_TEST_CASE(json_detelement_reading_test) {
auto readBackDetElements =
Acts::JsonSurfacesReader::readDetectorElements({filename, {"foo"}}, 1.0);

BOOST_REQUIRE_EQUAL(surfaces.size(), readBackDetElements.size());
for (auto [refSurface, detElement] :
Acts::zip(surfaces, readBackDetElements)) {
auto surface = &detElement->surface();
Expand Down

0 comments on commit 6f9e476

Please sign in to comment.