@@ -184,6 +184,19 @@ TEST_F(FIREtest, PrintMD)
184184 std::ifstream ifs (" running_fire.log" );
185185 std::string output_str;
186186
187+ // Line 6
188+ getline (ifs, output_str);
189+ EXPECT_THAT (output_str, testing::HasSubstr (" ELECTRONIC PART OF STRESS: 0.2461 kbar" ));
190+
191+ // Line 7
192+ getline (ifs, output_str);
193+ EXPECT_THAT (output_str, testing::HasSubstr (" IONIC (KINETIC) PART OF STRESS: 0.838539 kbar" ));
194+
195+ // Line 5
196+ getline (ifs, output_str);
197+ EXPECT_THAT (output_str, testing::HasSubstr (" MD PRESSURE (ELECTRONS+IONS) : 1.08464 kbar" ));
198+
199+ getline (ifs, output_str);
187200 // Line 1
188201 getline (ifs, output_str);
189202 EXPECT_THAT (output_str,
@@ -209,17 +222,7 @@ TEST_F(FIREtest, PrintMD)
209222 testing::HasSubstr (
210223 " ------------------------------------------------------------------------------------------------" ));
211224
212- // Line 5
213- getline (ifs, output_str);
214- EXPECT_THAT (output_str, testing::HasSubstr (" MD PRESSURE (ELECTRONS+IONS) : 1.0846391 kbar" ));
215-
216- // Line 6
217- getline (ifs, output_str);
218- EXPECT_THAT (output_str, testing::HasSubstr (" ELECTRONIC PART OF STRESS: 0.24609992 kbar" ));
219-
220- // Line 7
221225 getline (ifs, output_str);
222- EXPECT_THAT (output_str, testing::HasSubstr (" IONIC (KINETIC) PART OF STRESS: 0.83853919 kbar" ));
223226
224227 // Line 8
225228 getline (ifs, output_str);
0 commit comments