Skip to content

Commit

Permalink
Update test for new line in print output
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardt committed May 20, 2019
1 parent 7d087a6 commit 5405592
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_verilog_target.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ def test_target_clock(capfd, target, simulator):
assert lines[-5] == "0", out
assert lines[-4] == "1", out
elif simulator == "vcs":
assert lines[-10] == "0", out
assert lines[-9] == "0", out
assert lines[-8] == "0", out
assert lines[-7] == "1", out
assert lines[-8] == "1", out
else:
raise NotImplementedError(f"Unsupported simulator: {simulator}")

Expand All @@ -148,7 +148,7 @@ def test_print_nested_arrays(capfd, target, simulator):
if simulator == "ncsim":
actual = "\n".join(out.splitlines()[-9 - 3: -3])
elif simulator == "vcs":
actual = "\n".join(out.splitlines()[-9 - 6: -6])
actual = "\n".join(out.splitlines()[-9 - 7: -7])
else:
raise NotImplementedError(f"Unsupported simulator: {simulator}")
assert actual == """\
Expand Down Expand Up @@ -186,7 +186,7 @@ def test_print_double_nested_arrays(capfd, target, simulator):
if simulator == "ncsim":
actual = "\n".join(out.splitlines()[-18 - 3: -3])
elif simulator == "vcs":
actual = "\n".join(out.splitlines()[-18 - 6: -6])
actual = "\n".join(out.splitlines()[-18 - 7: -7])
else:
raise NotImplementedError(f"Unsupported simulator: {simulator}")
assert actual == """\
Expand Down

0 comments on commit 5405592

Please sign in to comment.