Apply clang-format to source tree
[alexxy/gromacs.git] / src / gromacs / random / tests / uniformintdistribution.cpp
index b718ada683cdcdc5c47946926d0fef960c1c4df4..1584dac8f275dc3e4919fd3f99be45f4efdc1002 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2015,2016,2018, by the GROMACS development team, led by
+ * Copyright (c) 2015,2016,2018,2019, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -57,12 +57,12 @@ namespace
 
 TEST(UniformIntDistributionTest, Output)
 {
-    gmx::test::TestReferenceData            data;
-    gmx::test::TestReferenceChecker         checker(data.rootChecker());
+    gmx::test::TestReferenceData    data;
+    gmx::test::TestReferenceChecker checker(data.rootChecker());
 
-    gmx::ThreeFry2x64<8>                    rng(123456, gmx::RandomDomain::Other);
-    gmx::UniformIntDistribution<int>        dist(1, 1000);
-    std::vector<int>                        result;
+    gmx::ThreeFry2x64<8>             rng(123456, gmx::RandomDomain::Other);
+    gmx::UniformIntDistribution<int> dist(1, 1000);
+    std::vector<int>                 result;
 
     result.reserve(10);
     for (int i = 0; i < 10; i++)
@@ -75,11 +75,11 @@ TEST(UniformIntDistributionTest, Output)
 
 TEST(UniformIntDistributionTest, Logical)
 {
-    gmx::ThreeFry2x64<8>               rng(123456, gmx::RandomDomain::Other);
-    gmx::UniformIntDistribution<int>   distA(2, 5);
-    gmx::UniformIntDistribution<int>   distB(2, 5);
-    gmx::UniformIntDistribution<int>   distC(3, 5);
-    gmx::UniformIntDistribution<int>   distD(2, 4);
+    gmx::ThreeFry2x64<8>             rng(123456, gmx::RandomDomain::Other);
+    gmx::UniformIntDistribution<int> distA(2, 5);
+    gmx::UniformIntDistribution<int> distB(2, 5);
+    gmx::UniformIntDistribution<int> distC(3, 5);
+    gmx::UniformIntDistribution<int> distD(2, 4);
 
     EXPECT_EQ(distA, distB);
     EXPECT_NE(distA, distC);
@@ -89,10 +89,10 @@ TEST(UniformIntDistributionTest, Logical)
 
 TEST(UniformIntDistributionTest, Reset)
 {
-    gmx::ThreeFry2x64<8>                         rng(123456, gmx::RandomDomain::Other);
-    gmx::UniformIntDistribution<int>             distA(2, 5);
-    gmx::UniformIntDistribution<int>             distB(2, 5);
-    gmx::UniformIntDistribution<>::result_type   valA, valB;
+    gmx::ThreeFry2x64<8>                       rng(123456, gmx::RandomDomain::Other);
+    gmx::UniformIntDistribution<int>           distA(2, 5);
+    gmx::UniformIntDistribution<int>           distB(2, 5);
+    gmx::UniformIntDistribution<>::result_type valA, valB;
 
     valA = distA(rng);
 
@@ -107,11 +107,11 @@ TEST(UniformIntDistributionTest, Reset)
 
 TEST(UniformIntDistributionTest, AltParam)
 {
-    gmx::ThreeFry2x64<8>                          rngA(123456, gmx::RandomDomain::Other);
-    gmx::ThreeFry2x64<8>                          rngB(123456, gmx::RandomDomain::Other);
-    gmx::UniformIntDistribution<int>              distA(2, 5);
-    gmx::UniformIntDistribution<int>              distB; // default parameters
-    gmx::UniformIntDistribution<int>::param_type  paramA(2, 5);
+    gmx::ThreeFry2x64<8>                         rngA(123456, gmx::RandomDomain::Other);
+    gmx::ThreeFry2x64<8>                         rngB(123456, gmx::RandomDomain::Other);
+    gmx::UniformIntDistribution<int>             distA(2, 5);
+    gmx::UniformIntDistribution<int>             distB; // default parameters
+    gmx::UniformIntDistribution<int>::param_type paramA(2, 5);
 
     EXPECT_NE(distA(rngA), distB(rngB));
     rngA.restart();
@@ -122,6 +122,6 @@ TEST(UniformIntDistributionTest, AltParam)
 }
 
 
-}  // namespace
+} // namespace
 
-}  // namespace gmx
+} // namespace gmx