Skip to content

Commit

Permalink
Test: fix a failed ut (#2084)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongriTianqi authored Mar 16, 2023
1 parent 014a745 commit b7b21b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions source/module_io/test/input_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,9 @@ TEST_F(InputTest, Default)
TEST_F(InputTest, Read)
{
std::string input_file = "./support/INPUT";
GlobalV::stru_file = "./support/STRU";
INPUT.Read(input_file);
EXPECT_EQ(INPUT.suffix,"autotest");
EXPECT_EQ(INPUT.stru_file,"STRU");
EXPECT_EQ(INPUT.stru_file,"./support/STRU");
EXPECT_EQ(INPUT.kpoint_file,"KPT");
EXPECT_EQ(INPUT.pseudo_dir,"../../PP_ORB/");
EXPECT_EQ(INPUT.orbital_dir,"../../PP_ORB/");
Expand Down
2 changes: 1 addition & 1 deletion source/module_io/test/support/INPUT
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ INPUT_PARAMETERS
#Parameters (1.General)
suffix autotest #the name of main output directory
latname none #the name of lattice name
stru_file STRU #the filename of file containing atom positions
stru_file ./support/STRU #the filename of file containing atom positions
kpoint_file KPT #the name of file containing k points
pseudo_dir ../../PP_ORB/ #the directory containing pseudo files
orbital_dir ../../PP_ORB/ #the directory containing orbital files
Expand Down

0 comments on commit b7b21b5

Please sign in to comment.