@@ -59,7 +59,7 @@ TEST_F(ToolCheckTest, Name)
5959 ModuleBase::CHECK_NAME (ifs, " abacus" , quit);
6060 output = testing::internal::GetCapturedStdout ();
6161 EXPECT_THAT (output,testing::HasSubstr (" not match" ));
62- // quit check
62+ // quit check: quit = false
6363 testing::internal::CaptureStdout ();
6464 EXPECT_DEATH (ModuleBase::CHECK_NAME (ifs, " abacus" ), " " );
6565 output = testing::internal::GetCapturedStdout ();
@@ -80,7 +80,7 @@ TEST_F(ToolCheckTest, Int)
8080 ModuleBase::CHECK_INT (ifs, 80 , quit);
8181 output = testing::internal::GetCapturedStdout ();
8282 EXPECT_THAT (output,testing::HasSubstr (" not match" ));
83- // quit check
83+ // quit check: quit = false
8484 testing::internal::CaptureStdout ();
8585 EXPECT_DEATH (ModuleBase::CHECK_INT (ifs, 80 ), " " );
8686 output = testing::internal::GetCapturedStdout ();
@@ -96,7 +96,7 @@ TEST_F(ToolCheckTest, Double)
9696 ofs << occupation << std::endl;
9797 ofs.close ();
9898 ifs.open (" tmp" );
99- // non-quit check
99+ // non-quit check: quit = false
100100 testing::internal::CaptureStdout ();
101101 ModuleBase::CHECK_DOUBLE (ifs, 0.23002 , quit);
102102 output = testing::internal::GetCapturedStdout ();
@@ -117,7 +117,7 @@ TEST_F(ToolCheckTest, String)
117117 ofs << caltype << std::endl;
118118 ofs.close ();
119119 ifs.open (" tmp" );
120- // non-quit check
120+ // non-quit check: quit=false
121121 testing::internal::CaptureStdout ();
122122 ModuleBase::CHECK_STRING (ifs, " scf" , quit);
123123 output = testing::internal::GetCapturedStdout ();
0 commit comments