diff --git a/pyproject.toml b/pyproject.toml index 7d58d05..a318e8d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,6 +38,7 @@ requires = [ build-backend = "scikit_build_core.build" [tool.scikit-build] +build-dir = "build/{wheel_tag}" cmake.source-dir = "slang" install.components = ["pylib"] metadata.version.provider = "scikit_build_core.metadata.setuptools_scm" diff --git a/tests/test_basics.py b/tests/test_basics.py index 6b66169..176ad7c 100644 --- a/tests/test_basics.py +++ b/tests/test_basics.py @@ -78,9 +78,9 @@ def test_compilation(): assert ( ("\n" + report) == """ -source:3:17: warning: implicit conversion truncates from 32 to 1 bits [-Wwidth-trunc] +source:3:20: warning: implicit conversion truncates from 32 to 1 bits [-Wwidth-trunc] assign #2 o = (~i + 32'd1234); - ^ ~~~~~~~~~~~~~ + ~ ^~~~~~~~~~~~~ """ ) diff --git a/tests/test_visitors.py b/tests/test_visitors.py index 93acb37..b12002e 100644 --- a/tests/test_visitors.py +++ b/tests/test_visitors.py @@ -6,7 +6,7 @@ def test_syntax_node_visitor(): Test the SyntaxNode visitor by extracting the tokens of a SyntaxNode. """ - tree = SyntaxTree.fromText("always (*)") + tree = SyntaxTree.fromText("always @(*)") tokens = [] def handle(obj): @@ -18,10 +18,11 @@ def handle(obj): token_kinds = [t.kind for t in tokens] assert token_kinds == [ TokenKind.AlwaysKeyword, - TokenKind.OpenParenthesisStar, - TokenKind.StarCloseParenthesis, + TokenKind.At, + TokenKind.OpenParenthesis, + TokenKind.Star, + TokenKind.CloseParenthesis, TokenKind.Semicolon, - TokenKind.EndOfFile, ]