Skip to content

Commit

Permalink
Update test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHubPang committed Sep 5, 2022
1 parent 73d300e commit fdb7ce1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions backend/RossyntBackendIntegrationTest/IntegrationTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ public Task CompileFileCSharp10FileScopedNamespaceDeclaration() => RunWithHttpCl
});

[Test]
public Task CompileFileCSharp11ExclamationExclamationToken() => RunWithHttpClient(async httpClient => {
var root = await CompileFile(httpClient, "int F(int a!!) {}");
AssertNode(root, "SyntaxNode", "CompilationUnitSyntax", "CompilationUnit", "int F(int a!!) {}", "0,17", false, 2);
AssertNode(root["Child"]?[0]?["Child"]?[0]?["Child"]?[2]?["Child"]?[1]?["Child"]?[2], "SyntaxToken", "SyntaxToken", "ExclamationExclamationToken", "!!", "11,2", false, 0);
public Task CompileFileCSharp11GreaterThanGreaterThanGreaterThanToken() => RunWithHttpClient(async httpClient => {
var root = await CompileFile(httpClient, "1 >>> 3");
AssertNode(root, "SyntaxNode", "CompilationUnitSyntax", "CompilationUnit", "1 >>> 3", "0,7", false, 2);
AssertNode(root["Child"]?[0]?["Child"]?[0]?["Child"]?[0]?["Child"]?[1], "SyntaxToken", "SyntaxToken", "GreaterThanGreaterThanGreaterThanToken", ">>>", "2,3", false, 1);
});

[Test]
Expand Down

0 comments on commit fdb7ce1

Please sign in to comment.