combine constant with varying data

This commit is contained in:
Martin Diehl 2020-10-31 09:56:43 +01:00
parent aecf2f539e
commit cf740a279e
1 changed files with 4 additions and 0 deletions

View File

@ -87,3 +87,7 @@ class TestConfigMaterial:
c = m['constituents'][0]
assert m['c'] == 1 and c['b'] == 0 and c['a'] == [i,1]
def test__constituents(self):
c = ConfigMaterial._constituents(c=1,v=[2,3])
assert c[0][0]['c'] == c[1][0]['c'] == 1
assert c[0][0]['v'] == c[1][0]['v'] -1 ==2