Skip to content

Commit 23cc44b

Browse files
committed
Adjust test for the OPTIMIZED evaluator default.
1 parent d88b25f commit 23cc44b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

diffpy/srreal/tests/testpairquantity.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,13 @@ def test_evaluatortype(self):
2626
self.assertRaises(ValueError, setattr, pq, 'evaluatortype', 'invalid')
2727
self.assertRaises(ValueError, setattr, pq, 'evaluatortype', 'basic')
2828
self.assertRaises(ValueError, setattr, pq, 'evaluatortype', 'BASic')
29-
# check OPTIMIZED setup with PDFCalculator where it is supported
29+
# check all supported evaluators in PDFCalculator
3030
pdfc = PDFCalculator()
31+
self.assertEqual('OPTIMIZED', pdfc.evaluatortype)
32+
pdfc.evaluatortype = 'BASIC'
3133
self.assertEqual('BASIC', pdfc.evaluatortype)
34+
pdfc.evaluatortype = 'CHECK'
35+
self.assertEqual('CHECK', pdfc.evaluatortype)
3236
pdfc.evaluatortype = 'OPTIMIZED'
3337
self.assertEqual('OPTIMIZED', pdfc.evaluatortype)
3438
return

0 commit comments

Comments
 (0)