Skip to content

Commit b336ed0

Browse files
committed
fix bug
1 parent c7d51be commit b336ed0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/source_io/test/outputlog_test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ TEST(OutputConvergenceAfterSCFTest, TestConvergence) {
3636
std::string file_content = ss.str();
3737
ifs_running.close();
3838

39-
std::string expected_content = " #SCF IS CONVERGED#\n";
39+
std::string expected_content = " #SCF IS CONVERGED#\n #TOTAL ENERGY# 27.211396 eV\n";
4040

4141
EXPECT_EQ(file_content, expected_content);
42-
std::remove("test_output_convergence.txt");
42+
//std::remove("test_output_convergence.txt");
4343
}
4444

4545
TEST(OutputConvergenceAfterSCFTest, TestNotConvergence) {
@@ -62,7 +62,7 @@ TEST(OutputConvergenceAfterSCFTest, TestNotConvergence) {
6262

6363
EXPECT_EQ(file_content, expected_content);
6464
EXPECT_EQ(screen_output, expected_content_screen);
65-
std::remove("test_output_convergence_noconvergence.txt");
65+
//std::remove("test_output_convergence_noconvergence.txt");
6666
}
6767

6868
// Test the output_efermi function

0 commit comments

Comments
 (0)