Skip to content
This repository has been archived by the owner on Jan 18, 2025. It is now read-only.

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MikePopoloski committed Jul 10, 2024
1 parent 220a25c commit 90090e1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_basics.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ def test_compilation():
comp.addSyntaxTree(tree)

diags = comp.getAllDiagnostics()
assert len(diags) == 1
assert len(diags) == 2
assert diags[0].code == Diags.WidthTruncate
assert diags[1].code == Diags.ArithOpMismatch

report = DiagnosticEngine.reportAll(comp.sourceManager, diags)
assert (
Expand All @@ -81,6 +82,9 @@ def test_compilation():
source:3:20: warning: implicit conversion truncates from 32 to 1 bits [-Wwidth-trunc]
assign #2 o = (~i + 32'd1234);
~ ^~~~~~~~~~~~~
source:3:23: warning: arithmetic between operands of different types ('logic' and 'bit[31:0]') [-Warith-op-mismatch]
assign #2 o = (~i + 32'd1234);
~~ ^ ~~~~~~~~
"""
)

Expand Down

0 comments on commit 90090e1

Please sign in to comment.