fixing unit tests in python-scatter-gather.py

This commit is contained in:
Evangelos Voyiatzis
2023-01-27 15:27:13 +02:00
committed by GitHub
parent 755766220c
commit d31595a36c

View File

@ -220,7 +220,7 @@ class PythonGather(unittest.TestCase):
for i in range(0,nimpropers): for i in range(0,nimpropers):
count += self.checkImproper(impropers[5*i:5*i+5], 1, 6, 3, 8, 7) count += self.checkImproper(impropers[5*i:5*i+5], 1, 6, 3, 8, 7)
count += self.checkImproper(impropers[5*i:5*i+5], 2, 8, 6, 10, 9) count += self.checkImproper(impropers[5*i:5*i+5], 2, 8, 6, 10, 9)
self.assertEqual(count,10) self.assertEqual(count,2)
@unittest.skipIf(not has_full, "Gather_impropers test") @unittest.skipIf(not has_full, "Gather_impropers test")
def testGatherImproper_newton_off(self): def testGatherImproper_newton_off(self):
@ -235,7 +235,7 @@ class PythonGather(unittest.TestCase):
for i in range(0,nimpropers): for i in range(0,nimpropers):
count += self.checkImproper(impropers[5*i:5*i+5], 1, 6, 3, 8, 7) count += self.checkImproper(impropers[5*i:5*i+5], 1, 6, 3, 8, 7)
count += self.checkImproper(impropers[5*i:5*i+5], 2, 8, 6, 10, 9) count += self.checkImproper(impropers[5*i:5*i+5], 2, 8, 6, 10, 9)
self.assertEqual(count,10) self.assertEqual(count,2)
############################## ##############################
if __name__ == "__main__": if __name__ == "__main__":