Skip to content

Commit b02e3f8

Browse files
author
abacus_fixer
committed
update unitcell, about changing none to user_defined_lattice
1 parent 0b5de4c commit b02e3f8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

source/source_cell/test/unitcell_test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ using UcellDeathTest = UcellTest;
172172
TEST_F(UcellTest, Constructor)
173173
{
174174
EXPECT_EQ(ucell->Coordinate, "Direct");
175-
EXPECT_EQ(ucell->latName, "none");
175+
EXPECT_EQ(ucell->latName, "user_defined_lattice");
176176
EXPECT_DOUBLE_EQ(ucell->lat0, 0.0);
177177
EXPECT_DOUBLE_EQ(ucell->lat0_angstrom, 0.0);
178178
EXPECT_EQ(ucell->ntype, 0);
@@ -547,7 +547,7 @@ TEST_F(UcellTest, RemakeCell)
547547

548548
TEST_F(UcellDeathTest, RemakeCellWarnings)
549549
{
550-
std::vector<std::string> latname_in = {"none", "trigonal", "bacm", "triclinic", "arbitrary"};
550+
std::vector<std::string> latname_in = {"user_defined_lattice", "trigonal", "bacm", "triclinic", "arbitrary"};
551551
for (int i = 0; i < latname_in.size(); ++i)
552552
{
553553
ucell->latvec.e11 = 10.0;
@@ -563,7 +563,7 @@ TEST_F(UcellDeathTest, RemakeCellWarnings)
563563
testing::internal::CaptureStdout();
564564
EXPECT_EXIT(unitcell::remake_cell(ucell->lat), ::testing::ExitedWithCode(1), "");
565565
std::string output = testing::internal::GetCapturedStdout();
566-
if (latname_in[i] == "none")
566+
if (latname_in[i] == "user_defined_lattice")
567567
{
568568
EXPECT_THAT(output, testing::HasSubstr("to use fixed_ibrav, latname must be provided"));
569569
}

0 commit comments

Comments
 (0)