File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
multi_physics/QED/QED_tests Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -47,11 +47,11 @@ BOOST_AUTO_TEST_CASE( picsar_span_range_based_loops )
4747{
4848 auto arr = std::array<int ,3 >();
4949 int i = 0 ;
50- for (auto & el : arr) el = ++i;
50+ for (auto & el : arr){ el = ++i } ;
5151 const auto span = picsar_span<const int >{arr.size (), arr.data ()};
5252 int sum = 0 ;
53- for (const auto & el : span) sum += el;
54- for (auto el : span) sum += el;
53+ for (const auto & el : span){ sum += el; }
54+ for (auto el : span) { sum += el; }
5555 BOOST_CHECK_EQUAL (sum, 12 );
5656}
5757
@@ -67,8 +67,9 @@ BOOST_AUTO_TEST_CASE( picsar_span_copy )
6767
6868 BOOST_CHECK_EQUAL (cspan.size (), arr.size ());
6969 BOOST_CHECK_EQUAL (cspan.data (), arr.data ());
70- for (size_t i = 0 ; i < arr.size (); ++i)
70+ for (size_t i = 0 ; i < arr.size (); ++i){
7171 BOOST_CHECK_EQUAL (cspan[i], arr[i]);
72+ }
7273}
7374
7475// *******************************
You can’t perform that action at this time.
0 commit comments