Skip to content

Commit

Permalink
Add additional tests for string escape sequences (#76710)
Browse files Browse the repository at this point in the history
I was not able to reproduce the original issue.

Closes #76709
  • Loading branch information
sharwell authored Jan 10, 2025
2 parents f68a47a + 95c4e02 commit 7d49593
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -427,4 +427,21 @@ class C
""
"""));
}

[Theory, CombinatorialData]
[WorkItem("https://github.com/dotnet/roslyn/issues/76709")]
public async Task TestEscapeCharacter2(TestHost testHost)
{
await TestAsync("""""
class C
{
string x1 = "\x0003e";
string x2 = "\0F";
string x3 = "\0failed";
}
""""", testHost,
Escape("\\x0003"),
Escape("\\0"),
Escape("\\0"));
}
}

0 comments on commit 7d49593

Please sign in to comment.