Skip to content

Commit 243e235

Browse files
committed
#17 Add more unit tests to check that the return type of VBA function signatures are parsed correctly.
1 parent 14d0fca commit 243e235

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

test/util/test_parse_signature.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,20 @@ def test_1(self) -> None:
5757
),
5858
),
5959
(
60-
"Function Test(Optional d As Variant = Empty)",
60+
"Public Property Get asdf() As String",
61+
VbaSignatureInfo(
62+
visibility="Public",
63+
return_type="String",
64+
procedure_type="Property Get",
65+
name="asdf",
66+
args=[],
67+
),
68+
),
69+
(
70+
"Function Test(Optional d As Variant = Empty) As String",
6171
VbaSignatureInfo(
6272
visibility=None,
63-
return_type=None,
73+
return_type="String",
6474
procedure_type="Function",
6575
name="Test",
6676
args=[

0 commit comments

Comments
 (0)