@@ -165,19 +165,19 @@ def test_initialize_components(tcc):
165165
166166tcso = [([ComponentSignal ([0 ,.5 ,1 ,1.5 ],20 ,0 )],1 ,20 ),
167167 ([ComponentSignal ([0 ,.5 ,1 ,1.5 ],20 ,0 )],4 ,20 ),
168- #([ComponentSignal([0,.5,1,1.5],20,0)],0,20), # Raises an exception
169- #([ComponentSignal([0,.5,1,1.5],20,0)],-2,20), # Raises an exception
170- #([ComponentSignal([0,.5,1,1.5],20,0)],1,0), # Raises an Exception
171- #([ComponentSignal([0,.5,1,1.5],20,0)],1,-3), # Raises an exception
168+ # ([ComponentSignal([0,.5,1,1.5],20,0)],0,20), # Raises an exception
169+ # ([ComponentSignal([0,.5,1,1.5],20,0)],-2,20), # Raises an exception
170+ # ([ComponentSignal([0,.5,1,1.5],20,0)],1,0), # Raises an Exception
171+ # ([ComponentSignal([0,.5,1,1.5],20,0)],1,-3), # Raises an exception
172172 ([ComponentSignal ([0 ,.5 ,1 ,1.5 ],20 ,0 ),ComponentSignal ([0 ,.5 ,1 ,1.5 ],20 ,1 )],2 ,20 ),
173173 ([ComponentSignal ([0 ,.5 ,1 ,1.5 ],20 ,0 ),ComponentSignal ([0 ,.5 ,1 ,21.5 ],20 ,1 )],2 ,20 ),
174174 ([ComponentSignal ([0 ,1 ,1.5 ],20 ,0 ),ComponentSignal ([0 ,.5 ,1 ,21.5 ],20 ,1 )],2 ,20 ),
175- ([ComponentSignal ([0 ,.5 ,1 ,1.5 ],20 ,0 ),ComponentSignal ([0 ,.5 ,1 ,1.5 ],20 ,1 )],1 ,- 3 ),
176- ([],1 ,20 ),
177- ([],- 1 ,20 ),
178- ([],0 ,20 ), # Raises an exception
179- ([],1 ,0 ), #Raises an exception
180- ([],- 1 ,- 2 ),
175+ # ([ComponentSignal([0,.5,1,1.5],20,0),ComponentSignal([0,.5,1,1.5],20,1)],1,-3), # Negative signal length. Raises an exception
176+ # ([],1,20), # Empty components. Raises an Exception
177+ # ([],-1,20), # Empty components with negative number of components. Raises an exception
178+ # ([],0,20), # Empty components with zero number of components. Raises an exception
179+ # ([],1,0), # Empty components with zero signal length. Raises an exception.
180+ # ([],-1,-2), # Empty components with negative number of components and signal length Raises an exception.
181181
182182]
183183@pytest .mark .parametrize ('tcso' ,tcso )
0 commit comments