Capture and verify stdout results from tests
This commit is contained in:
1 parent
01ef4fc27c
commit
43fb74fe4b
3 files changed
+57
-7
No files matched your search
@@ -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");
|
||||
}
|
||||
Reference in new issue
Block a user