Capture and verify stdout results from tests

This commit is contained in:
josh committed 2022-10-02 10:31:07 -04:00
1 parent 01ef4fc27c
commit 43fb74fe4b
3 files changed
+57 -7

No files matched your search

+2
View File
@@ -11,8 +11,10 @@ unittest
string input = "abcdef";
auto parser = new Testparser.Parser(cast(const(ubyte) *)input.ptr, input.length);
assert(parser.parse() == true);
writeln("pass1");
input = "abcabcdef";
parser = new Testparser.Parser(cast(const(ubyte) *)input.ptr, input.length);
assert(parser.parse() == true);
writeln("pass2");
}