From d84b12ea63ef7c601bcc402844d16dbc6ce38c6a Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Mon, 29 Jul 2024 11:57:46 -0400 Subject: [PATCH] define EPSILON consistently as static constexp --- unittest/commands/test_groups.cpp | 2 +- unittest/formats/test_atom_styles.cpp | 2 +- unittest/formats/test_molecule_file.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/unittest/commands/test_groups.cpp b/unittest/commands/test_groups.cpp index efeb00f685..4035a4a4d4 100644 --- a/unittest/commands/test_groups.cpp +++ b/unittest/commands/test_groups.cpp @@ -314,7 +314,7 @@ TEST_F(GroupTest, Dynamic) command("group ramp variable grow");); } -constexpr double EPSILON = 1.0e-13; +static constexpr double EPSILON = 1.0e-13; TEST_F(GroupTest, VariableFunctions) { diff --git a/unittest/formats/test_atom_styles.cpp b/unittest/formats/test_atom_styles.cpp index 68bc0a4437..921d469e31 100644 --- a/unittest/formats/test_atom_styles.cpp +++ b/unittest/formats/test_atom_styles.cpp @@ -88,7 +88,7 @@ static void create_molecule_files(const std::string &h2o_filename, const std::st // whether to print verbose output (i.e. not capturing LAMMPS screen output). bool verbose = false; -const double EPSILON = 5.0e-14; +static const double EPSILON = 5.0e-14; namespace LAMMPS_NS { using ::testing::Eq; diff --git a/unittest/formats/test_molecule_file.cpp b/unittest/formats/test_molecule_file.cpp index 743a8fbbfa..e11a8ea4f1 100644 --- a/unittest/formats/test_molecule_file.cpp +++ b/unittest/formats/test_molecule_file.cpp @@ -32,7 +32,7 @@ using testing::StrEq; using utils::split_words; -const double EPSILON = 5.0e-14; +static constexpr double EPSILON = 5.0e-14; #define test_name test_info_->name()