Skip to content

Commit 87c1118

Browse files
committed
TST: cover position formula failure for SG 209
1 parent f4ff1a0 commit 87c1118

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/diffpy/structure/tests/testsymmetryutilities.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,16 @@ def test___init__(self):
210210
self.assertEqual(16, self.g227oc.multiplicity)
211211
return
212212

213+
214+
@unittest.expectedFailure
215+
def test_signedRatStr(self):
216+
"check GeneratorSite.signedRatStr()"
217+
g = self.g117c
218+
self.assertEqual('-1', g.signedRatStr(-1.00000000000002))
219+
self.assertEqual('+1', g.signedRatStr(1.00000000000002))
220+
return
221+
222+
213223
def test_positionFormula(self):
214224
"""check GeneratorSite.positionFormula()
215225
"""
@@ -236,6 +246,19 @@ def test_positionFormula(self):
236246
self.assertEqual([], self.g227oc.pparameters)
237247
return
238248

249+
250+
@unittest.expectedFailure
251+
def test_positionFormula_sg209(self):
252+
"""check positionFormula at [x, 1-x, -x] site or F432 space group.
253+
"""
254+
sg209 = GetSpaceGroup('F 4 3 2')
255+
xyz = [0.05198, 0.94802, -0.05198]
256+
g209e = GeneratorSite(sg209, xyz)
257+
pfm = g209e.positionFormula(xyz)
258+
self.assertEqual('x', pfm['x'])
259+
return
260+
261+
239262
def test_UFormula(self):
240263
"""check GeneratorSite.UFormula()
241264
"""

0 commit comments

Comments
 (0)