Skip to content

Commit

Permalink
fix flow style sequences and collections events in test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
Herringway committed Jul 25, 2022
1 parent 5c791b9 commit 57c725a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions testsuite/source/app.d
Original file line number Diff line number Diff line change
@@ -72,6 +72,10 @@ auto dumpEventString(string str) @safe
break;
case EventID.mappingStart:
line = "+MAP";
if (event.collectionStyle == CollectionStyle.flow)
{
line ~= text(" {}");
}
if (event.anchor != "")
{
line ~= text(" &", event.anchor);
@@ -83,6 +87,10 @@ auto dumpEventString(string str) @safe
break;
case EventID.sequenceStart:
line = "+SEQ";
if (event.collectionStyle == CollectionStyle.flow)
{
line ~= text(" []");
}
if (event.anchor != "")
{
line ~= text(" &", event.anchor);

0 comments on commit 57c725a

Please sign in to comment.