This commit is contained in:
Axel Kohlmeyer
2020-09-20 14:06:40 -04:00
parent 4cbf821af3
commit 54b9e60dd0

View File

@ -16,6 +16,7 @@
using ::testing::HasSubstr;
using ::testing::StartsWith;
using ::testing::StrEq;
using ::LAMMPS_NS::tagint;
class LibraryProperties : public ::testing::Test {
protected:
@ -264,8 +265,7 @@ protected:
void SetUp() override
{
const char *args[] = {"LAMMPS_test", "-log", "none",
"-echo", "screen", "-nocite"};
const char *args[] = {"LAMMPS_test", "-log", "none", "-echo", "screen", "-nocite"};
char **argv = (char **)args;
int argc = sizeof(args) / sizeof(char *);
@ -311,7 +311,7 @@ TEST_F(AtomProperties, mass)
TEST_F(AtomProperties, id)
{
EXPECT_EQ(lammps_extract_atom_datatype(lmp, "id"), LAMMPS_TAGINT);
LAMMPS_NS::tagint * id = (LAMMPS_NS::tagint *)lammps_extract_atom(lmp, "id");
tagint *id = (tagint *)lammps_extract_atom(lmp, "id");
ASSERT_NE(id, nullptr);
ASSERT_EQ(id[0], 1);
ASSERT_EQ(id[1], 2);