Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Himura2la committed Oct 27, 2020
1 parent 5326a7f commit 048b027
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions YamlDotNet.Test/Core/EmitterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,19 @@ public void FoldedStyleIsSelectedWhenNewLinesAreFoundInLiteral()
yaml.Should().Contain(">");
}


[Fact]
[Trait("motive", "pr #540")]
public void AllowBlockStyleInMultilineScalarsWithTrailingSpaces()
{
var events = SequenceWith(Scalar("hello \nworld").ImplicitPlain);

var yaml = EmittedTextFrom(StreamedDocumentWith(events));

yaml.Should().Contain("\n");
}


[Fact]
public void FoldedStyleDoesNotGenerateExtraLineBreaks()
{
Expand Down

0 comments on commit 048b027

Please sign in to comment.