mirror of
https://github.com/triqs/dft_tools
synced 2024-12-22 04:13:47 +01:00
Added test of input of ion equiv groups
This commit is contained in:
parent
14f8b1d9e1
commit
04e1e86a4b
@ -102,6 +102,12 @@ class TestParseStringIonList(arraytest.ArrayTestCase):
|
|||||||
with self.assertRaisesRegexp(AssertionError, err_mess):
|
with self.assertRaisesRegexp(AssertionError, err_mess):
|
||||||
self.cpars.parse_string_ion_list('8..5')
|
self.cpars.parse_string_ion_list('8..5')
|
||||||
|
|
||||||
|
# Scenario 6
|
||||||
|
def test_eq_classes(self):
|
||||||
|
expected = {'nion': 4, 'ion_list': [[4, 7], [5, 6]]}
|
||||||
|
res = self.cpars.parse_string_ion_list('[5, 8] [6 7]')
|
||||||
|
self.assertDictEqual(res, expected)
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user