Skip to content

Commit e0d69e1

Browse files
committed
TST: objcryst inversion center is correct
1 parent 4fbc43a commit e0d69e1

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/tests/TestObjCrystStructureAdapter.hpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,17 @@ class TestObjCrystStructureAdapter : public CxxTest::TestSuite
247247
}
248248

249249

250+
void test_objcryst_inversion_center()
251+
{
252+
// verify ObjCryst bug in SpaceGroup.GetInversionCenter is fixed
253+
ObjCryst::SpaceGroup sg129("P 4/n m m :1");
254+
const CrystVector_REAL xyzinv = sg129.GetInversionCenter();
255+
TS_ASSERT_EQUALS(0.25, xyzinv(0));
256+
TS_ASSERT_EQUALS(0.25, xyzinv(1));
257+
TS_ASSERT_EQUALS(0.0, xyzinv(2));
258+
}
259+
260+
250261
void test_getEquivalentAtoms()
251262
{
252263
diffpy::mathutils::EpsilonEqual allclose;

0 commit comments

Comments
 (0)