Skip to content

Commit 7491a5d

Browse files
committed
added some more tests to better document #2206
1 parent 3df8362 commit 7491a5d

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

RubberduckTests/Grammar/VBAParserTests.cs

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,12 +1519,25 @@ End Sub
15191519
}
15201520

15211521
[TestMethod]
1522-
public void TestNestedParensForByValArgument()
1522+
public void TestParensForByValSingleArg()
1523+
{
1524+
//Assert.Inconclusive("See issue #2206");
1525+
const string code = @"
1526+
Sub Test()
1527+
DoSomething (foo)
1528+
End Sub
1529+
";
1530+
var parseResult = Parse(code);
1531+
AssertTree(parseResult.Item1, parseResult.Item2, "//argumentExpression", matches => matches.Count == 1);
1532+
}
1533+
1534+
[TestMethod]
1535+
public void TestParensForByValFirstArg()
15231536
{
15241537
Assert.Inconclusive("See issue #2206");
15251538
const string code = @"
15261539
Sub Test()
1527-
DoSomething (foo), (bar)
1540+
DoSomething (foo), bar
15281541
End Sub
15291542
";
15301543
var parseResult = Parse(code);

0 commit comments

Comments
 (0)