Skip to content

Commit

Permalink
New test that check classes with annotated attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
msaelices committed Sep 15, 2023
1 parent 1f9c0fd commit 1992d05
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_classdef.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ def test_classdef():
'struct Foo(Bar): pass',
rules=RuleSet(convert_class_to_struct=True),
)
validate(
'class Foo(Bar): n: int = 10',
'struct Foo(Bar): var n: Int = 10',
rules=RuleSet(convert_class_to_struct=True),
)


def test_classdef_non_fully_annotated_classes():
Expand Down

0 comments on commit 1992d05

Please sign in to comment.