Added unit test for has_error

This commit is contained in:
Karl Hammond
2022-09-26 09:21:41 -05:00
parent 28d84b4fcb
commit 1072a5bda2
3 changed files with 21 additions and 0 deletions

View File

@ -16,6 +16,7 @@ int f_lammps_version();
void f_lammps_memory_usage(double*);
int f_lammps_get_mpi_comm();
int f_lammps_extract_setting(const char*);
int f_lammps_has_error();
}
class LAMMPS_properties : public ::testing::Test {
@ -107,3 +108,8 @@ TEST_F(LAMMPS_properties, extract_setting)
EXPECT_EQ(f_lammps_extract_setting("UNKNOWN"), -1);
};
TEST_F(LAMMPS_properties, has_error)
{
EXPECT_EQ(f_lammps_has_error(), 0);
};