Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 13, 2024
1 parent d584f57 commit 5b26114
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions crosstl/src/backend/DirectX/DirectxAst.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def __init__(self, init, condition, update, body):
def __repr__(self):
return f"ForNode(init={self.init}, condition={self.condition}, update={self.update}, body={self.body})"


class WhileNode(ASTNode):
def __init__(self, condition, body):
self.condition = condition
Expand Down
1 change: 1 addition & 0 deletions tests/test_backend/test_directx/test_codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ def test_for_codegen():
except SyntaxError:
pytest.fail("For loop parsing or code generation not implemented.")


def test_while_codegen():
code = """
struct VSInput {
Expand Down
2 changes: 2 additions & 0 deletions tests/test_backend/test_directx/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def test_for_parsing():
except SyntaxError:
pytest.fail("for parsing not implemented.")


def test_while_parsing():
code = """
VSOutput VSMain(VSInput input) {
Expand All @@ -92,6 +93,7 @@ def test_while_parsing():
except SyntaxError:
pytest.fail("while parsing not implemented")


def test_else_parsing():
code = """
PSOutput PSMain(PSInput input) {
Expand Down

0 comments on commit 5b26114

Please sign in to comment.