From 504e67502320bf5a3bc75b76afa849ae2f5b3b04 Mon Sep 17 00:00:00 2001 From: Richard Berger Date: Fri, 13 Nov 2020 13:19:44 -0500 Subject: [PATCH] Splitting up long test methods --- unittest/formats/test_atom_styles.cpp | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/unittest/formats/test_atom_styles.cpp b/unittest/formats/test_atom_styles.cpp index 5529176f4f..88ebcbc669 100644 --- a/unittest/formats/test_atom_styles.cpp +++ b/unittest/formats/test_atom_styles.cpp @@ -464,7 +464,7 @@ void ASSERT_ATOM_STATE_EQ(Atom* atom, const AtomState& expected) { ASSERT_EQ(atom->map_tag_max, expected.map_tag_max); } -TEST_F(AtomStyleTest, atomic) +TEST_F(AtomStyleTest, atomic_is_default) { AtomState expected; expected.atom_style = "atomic"; @@ -478,6 +478,20 @@ TEST_F(AtomStyleTest, atomic) expected.has_f = true; ASSERT_ATOM_STATE_EQ(lmp->atom, expected); +} + +TEST_F(AtomStyleTest, atomic_after_charge) +{ + AtomState expected; + expected.atom_style = "atomic"; + expected.molecular = Atom::ATOMIC; + expected.tag_enable = 1; + expected.has_type = true; + expected.has_mask = true; + expected.has_image = true; + expected.has_x = true; + expected.has_v = true; + expected.has_f = true; if (!verbose) ::testing::internal::CaptureStdout(); lmp->input->one("atom_style charge"); @@ -485,7 +499,10 @@ TEST_F(AtomStyleTest, atomic) if (!verbose) ::testing::internal::GetCapturedStdout(); ASSERT_ATOM_STATE_EQ(lmp->atom, expected); +} +TEST_F(AtomStyleTest, atomic) +{ if (!verbose) ::testing::internal::CaptureStdout(); lmp->input->one("atom_modify map hash"); lmp->input->one("create_box 2 box");