Skip to content

Commit

Permalink
make sure assertEventsEqual() actually has events to test
Browse files Browse the repository at this point in the history
  • Loading branch information
Herringway committed Sep 18, 2023
1 parent 05cdebf commit a2b0f95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/dyaml/test/emitter.d
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module dyaml.test.emitter;

@safe unittest
{
import std.array : Appender;
import std.array : Appender, array;
import std.range : ElementType, isInputRange;

import dyaml : CollectionStyle, LineBreak, Loader, Mark, ScalarStyle;
Expand Down Expand Up @@ -40,7 +40,7 @@ module dyaml.test.emitter;
{
//Must exist due to Anchor, Tags reference counts.
auto loader = Loader.fromFile(dataFilename);
auto events = loader.parse();
auto events = loader.parse().array;
auto emitStream = Appender!string();
emitTestCommon(emitStream, events);

Expand All @@ -60,7 +60,7 @@ module dyaml.test.emitter;
{
//Must exist due to Anchor, Tags reference counts.
auto loader = Loader.fromFile(canonicalFilename);
auto events = loader.parse();
auto events = loader.parse().array;
foreach (canonical; [false, true])
{
auto emitStream = Appender!string();
Expand Down Expand Up @@ -88,7 +88,7 @@ module dyaml.test.emitter;
{
//must exist due to Anchor, Tags reference counts
auto loader = Loader.fromFile(canonicalFilename);
auto events = loader.parse();
auto events = loader.parse().array;
foreach (flowStyle; [CollectionStyle.block, CollectionStyle.flow])
{
foreach (style; [ScalarStyle.literal, ScalarStyle.folded,
Expand Down

0 comments on commit a2b0f95

Please sign in to comment.