Skip to content

Commit 283594c

Browse files
Add missing case to waveform creation tests
1 parent d0528fa commit 283594c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_records.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ def test_waveform_construction():
127127
with pytest.raises(AssertionError):
128128
builder.WaveformIn("WI10", [1, 2, 4], initial_value=[5, 6])
129129

130+
# Specifying both length and NELM should produce an error
131+
with pytest.raises(AssertionError):
132+
builder.WaveformIn("WI11", length=11, NELM=12)
130133

131134
def validate_fixture_names(params):
132135
"""Provide nice names for the out_records fixture in TestValidate class"""

0 commit comments

Comments
 (0)