Add tests from vibe-d:core.

This commit is contained in:
Sönke Ludwig 2017-02-17 00:55:16 +01:00
parent 99bc332a81
commit 5a8d5a2fea
No known key found for this signature in database
GPG key ID: D95E8DB493EE314C
7 changed files with 354 additions and 0 deletions

27
tests/args.d Normal file
View file

@ -0,0 +1,27 @@
/+ dub.json:
{
"name": "tests",
"description": "Command-line argument test",
"dependencies": {
"vibe-core": {"path": "../"}
}
}
+/
module test;
import vibe.core.args;
import vibe.core.log;
import std.stdio;
shared static this()
{
string argtest;
readOption("argtest", &argtest, "Test argument");
writeln("argtest=", argtest);
}
void main()
{
finalizeCommandLineOptions();
}