Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: add a initialization of lmaxmax in UnitTests cell_unitcell_test_setupcell #2767

Merged
merged 8 commits into from
Aug 2, 2023
4 changes: 4 additions & 0 deletions source/module_cell/test/unitcell_test_setupcell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ class UcellTest : public ::testing::Test
protected:
std::unique_ptr<UnitCell> ucell{new UnitCell};
std::string output;
void SetUp()
{
WHUweiqingzhou marked this conversation as resolved.
Show resolved Hide resolved
hongriTianqi marked this conversation as resolved.
Show resolved Hide resolved
ucell->lmaxmax = 2;
}
WHUweiqingzhou marked this conversation as resolved.
Show resolved Hide resolved
};

using UcellDeathTest = UcellTest;
Expand Down
4 changes: 4 additions & 0 deletions source/module_cell/test_pw/unitcell_test_pw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ class UcellTest : public ::testing::Test
protected:
std::unique_ptr<UnitCell> ucell{new UnitCell};
std::string output;
void SetUp()
{
WHUweiqingzhou marked this conversation as resolved.
Show resolved Hide resolved
ucell->lmaxmax = 2;
}
WHUweiqingzhou marked this conversation as resolved.
Show resolved Hide resolved
};

TEST_F(UcellTest,ReadAtomSpecies)
Expand Down