Skip to content

Commit

Permalink
code format
Browse files Browse the repository at this point in the history
  • Loading branch information
ianna committed Sep 20, 2020
1 parent 9bb5ee5 commit 77f0a9d
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions DetectorDescription/DDCMS/test/DDFilteredView.goto.cppunit.cc
Expand Up @@ -45,7 +45,7 @@ void testDDFilteredViewGoTo::checkFilteredView() {
while (fview.next(0)) {
std::cout << "#" << count << ": ";
printMe(fview);

if (count == 45) {
testPos = fview.navPos();
}
Expand All @@ -58,7 +58,7 @@ void testDDFilteredViewGoTo::checkFilteredView() {
std::cout << "\n==== Let's go to #45\n";
fview.goTo(testPos);
printMe(fview);

int i = 0;
for (auto it : fview.navPos()) {
CPPUNIT_ASSERT(it == testPos[i++]);
Expand Down Expand Up @@ -89,7 +89,7 @@ void testDDFilteredViewGoTo::checkFilteredView() {
printMe(fview);

} while (fview.next(0) && fview.level() < startLevel);

std::cout << "\n==== Continue iteration\n";

count = 1;
Expand Down Expand Up @@ -135,13 +135,10 @@ void testDDFilteredViewGoTo::printMe(const cms::DDFilteredView& fview) {

auto copies = fview.copyNos();
std::cout << " copy Nos: ";
std::for_each(copies.rbegin(), copies.rend(), [](const auto &it){
std::cout << it << ", ";
});
std::for_each(copies.rbegin(), copies.rend(), [](const auto& it) { std::cout << it << ", "; });
std::cout << "\n levels : ";
for (auto it : fview.navPos()) {
std::cout << it << ", ";
}
std::cout << "\n";
}

0 comments on commit 77f0a9d

Please sign in to comment.