Skip to content

Commit 7ab8b74

Browse files
committed
Add cases
1 parent 0784fc7 commit 7ab8b74

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/SimpleStateMachine.StructuralSearch.Tests/PlaceholderParserTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public static class PlaceholderParserTests
1313
[InlineData("$var$;", "test;;", "test")]
1414
[InlineData("$var$;.", "test;;;.", "test;;")]
1515
[InlineData("$value2$", "temp1 ?? temp2", "temp1 ?? temp2")]
16-
[InlineData("= $value2$;", "= temp1 ?? temp2;", "temp1 ?? temp2")]
16+
[InlineData("$value2$;", "temp1 ?? temp2;", "temp1 ?? temp2")]
1717
public static void PlaceholderParsingShouldBeSuccess(string template, string source, string expectedResult)
1818
{
1919
var input = Input.Input.String(source);

src/SimpleStateMachine.StructuralSearch/CustomParsers/PlaceholderParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ internal class PlaceholderParser : ParserWithLookahead<char, string>, IContextDe
1717
Constant.Space
1818
};
1919

20-
internal static readonly Parser<char, char> StringLiteralChar = Parser.AnyCharExcept(InvalidStringLiteralChars);
20+
private static readonly Parser<char, char> StringLiteralChar = Parser.AnyCharExcept(InvalidStringLiteralChars);
2121

2222
private readonly string _name;
2323
private IParsingContext? _context;

0 commit comments

Comments
 (0)