Skip to content

Commit

Permalink
failed test
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbfaulks committed Sep 6, 2024
1 parent aa9be23 commit 425ba57
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions YamlDotNet.Test/Core/EmitterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,15 @@ public void SingleQuotesAreNotDoubleQuotedUnlessNecessary(string input)
yaml.Should().NotContain("\"");
}

[Theory]
[InlineData(@"\hello world")]
public void LeadingBackslashIsNotQuotedUnlessNecessary(string input)
{
var events = StreamOf(DocumentWith(new Scalar(input)));
var yaml = EmittedTextFrom(events);
yaml.Should().NotContain("\'");
}

private string Lines(params string[] lines)
{
return string.Join(Environment.NewLine, lines);
Expand Down

0 comments on commit 425ba57

Please sign in to comment.