Skip to content

Commit

Permalink
Fix: add a initialization of lmaxmax in UnitTests `cell_unitcell_test…
Browse files Browse the repository at this point in the history
…_setupcell` (#2767)

* add a initialization of lmaxmax in UnitTests #test_setupcell

* Update source/module_cell/test/unitcell_test_setupcell.cpp

* Update source/module_cell/test_pw/unitcell_test_pw.cpp

* Update source/module_cell/test/unitcell_test_setupcell.cpp

* Update source/module_cell/test_pw/unitcell_test_pw.cpp

---------

Co-authored-by: Zhao Tianqi <hongriTianqi@users.noreply.github.com>
  • Loading branch information
WHUweiqingzhou and hongriTianqi committed Aug 2, 2023
1 parent 178f9bb commit 1437a1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
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()
{
ucell->lmaxmax = 2;
}
};

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()
{
ucell->lmaxmax = 2;
}
};

TEST_F(UcellTest,ReadAtomSpecies)
Expand Down

0 comments on commit 1437a1f

Please sign in to comment.