@@ -50,7 +50,7 @@ TYPED_TEST(OutputMullikenTest, nspin1)
5050 std::ifstream ifs (" ./mulliken.txt" );
5151 std::string str ((std::istreambuf_iterator<char >(ifs)), std::istreambuf_iterator<char >());
5252 EXPECT_THAT (str, testing::HasSubstr (" Total charge 4" ));
53- EXPECT_THAT (str, testing::HasSubstr (" total charge on atom 1 4.0000" ));
53+ EXPECT_THAT (str, testing::HasSubstr (" total charge on atom 1 4.0000" ));
5454 remove (" ./mulliken.txt" );
5555}
5656
@@ -72,8 +72,8 @@ TYPED_TEST(OutputMullikenTest, nspin2)
7272 EXPECT_THAT (str, testing::HasSubstr (" Total charge 4" ));
7373 EXPECT_THAT (str, testing::HasSubstr (" Total charge of spin1 3" ));
7474 EXPECT_THAT (str, testing::HasSubstr (" Total charge of spin2 1" ));
75- EXPECT_THAT (str, testing::HasSubstr (" total charge on atom 1 4.0000" ));
76- EXPECT_THAT (str, testing::HasSubstr (" total magnetism on atom 1 2.0000" ));
75+ EXPECT_THAT (str, testing::HasSubstr (" total charge on atom 1 4.0000" ));
76+ EXPECT_THAT (str, testing::HasSubstr (" total magnetism on atom 1 2.0000" ));
7777 remove (" ./mulliken.txt" );
7878}
7979
@@ -96,11 +96,8 @@ TYPED_TEST(OutputMullikenTest, nspin4)
9696 std::ifstream ifs (" ./mulliken.txt" );
9797 std::string str ((std::istreambuf_iterator<char >(ifs)), std::istreambuf_iterator<char >());
9898 EXPECT_THAT (str, testing::HasSubstr (" Total charge 4" ));
99- EXPECT_THAT (str, testing::HasSubstr (" total charge on atom 1 4.0000" ));
100- EXPECT_THAT (
101- str,
102- testing::HasSubstr (
103- " total magnetism on atom 1 0.0000 0.0000 2.0000" ));
99+ EXPECT_THAT (str, testing::HasSubstr (" total charge on atom 1 4.0000" ));
100+ EXPECT_THAT (str, testing::HasSubstr (" total magnetism on atom 1 0.0000 0.0000 2.0000" ));
104101 remove (" ./mulliken.txt" );
105102}
106103
@@ -111,8 +108,8 @@ int main(int argc, char** argv)
111108 MPI_Init (&argc, &argv);
112109 testing::InitGoogleTest (&argc, argv);
113110
114- int nprocs;
115- int myrank;
111+ int nprocs= 0 ;
112+ int myrank= 0 ;
116113
117114 MPI_Comm_size (MPI_COMM_WORLD , &nprocs);
118115 MPI_Comm_rank (MPI_COMM_WORLD , &myrank);
0 commit comments