def test__parse__(self):
ng.load_netlist(netlists_path + 'dc_ac_check.net')
with pytest.raises(KeyError):
ng.run_dc(src='v1', start=0, stop=1, fstep=.1)
with pytest.raises(ValueError):
ng.run_dc(src='v1', start=0, stop=1)
with pytest.raises(ValueError):
ng.run_dc(src='v1', start=0, stop=1, step=.1,
start2=0, stop2=1, step2=.1)
with pytest.raises(ValueError):
ng.run_dc(src='v1', start=0, stop=1, step=.1,
src2='v2', start2=0, stop2=1)
with pytest.raises(ValueError):
ng.run_dc('v1 0 1 0 ')
with pytest.raises(ValueError):
ng.run_dc('v1 0 1 1m v2 0 1 0')
评论列表
文章目录