We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f478e0c commit 778b492Copy full SHA for 778b492
1 file changed
src/diffpy/srreal/tests/teststructureadapter.py
@@ -60,6 +60,17 @@ def test_createStructureAdapterTypes(self):
60
self.assertTrue(type(adpt3) is DiffPyStructureAtomicAdapter)
61
return
62
63
+ @unittest.expectedFailure
64
+ def test_createStructureAdapter_int64_occupancy(self):
65
+ """Check Structure conversion when occupany is of numpy.int64 type.
66
+ """
67
+ self.nickel[0].occupancy = numpy.int64(0)
68
+ self.nickel[1].occupancy = numpy.int64(1)
69
+ adpt = createStructureAdapter(self.nickel)
70
+ self.assertEqual(0.0, adpt.siteOccupancy(0))
71
+ self.assertEqual(1.0, adpt.siteOccupancy(1))
72
+ return
73
+
74
def test_pickling(self):
75
'''check pickling of StructureAdapter instances.
76
'''
0 commit comments