Skip to content

Commit 03fdfe4

Browse files
committed
Workaround dspec_tester '---' mid-example bug
1 parent e0624ce commit 03fdfe4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

spec/hash-map.dd

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -539,13 +539,14 @@ $(SPEC_RUNNABLE_EXAMPLE_COMPILE
539539
totalChars += charCount;
540540
}
541541

542+
const char[37] hr = '-';
542543
if (args.length > 2)
543544
{
544-
writefln("-------------------------------------\n%8s%8s%8s total",
545-
totalLines, totalWords, totalChars);
545+
writeln(hr);
546+
writefln("%8s%8s%8s total", totalLines, totalWords, totalChars);
546547
}
547548

548-
writeln("-------------------------------------");
549+
writeln(hr);
549550
foreach (word; dictionary.keys.sort)
550551
{
551552
writefln("%3s %s", dictionary[word], word);

0 commit comments

Comments
 (0)