mirror of
https://github.com/dlang/phobos.git
synced 2025-04-30 07:00:37 +03:00
Remove parens from last commit
This commit is contained in:
parent
9a3cfd1aaa
commit
f10cf5ba57
1 changed files with 3 additions and 6 deletions
|
@ -974,8 +974,7 @@ unittest
|
||||||
import std.math;
|
import std.math;
|
||||||
|
|
||||||
uint paranoid = 2;
|
uint paranoid = 2;
|
||||||
string[] args = (["program.name",
|
string[] args = ["program.name", "--paranoid", "--paranoid", "--paranoid"];
|
||||||
"--paranoid", "--paranoid", "--paranoid"];
|
|
||||||
getopt(args, "paranoid+", ¶noid);
|
getopt(args, "paranoid+", ¶noid);
|
||||||
assert(paranoid == 5, to!(string)(paranoid));
|
assert(paranoid == 5, to!(string)(paranoid));
|
||||||
|
|
||||||
|
@ -993,8 +992,7 @@ unittest
|
||||||
string data = "file.dat";
|
string data = "file.dat";
|
||||||
int length = 24;
|
int length = 24;
|
||||||
bool verbose = false;
|
bool verbose = false;
|
||||||
args = (["program.name", "--length=5",
|
args = ["program.name", "--length=5", "--file", "dat.file", "--verbose"];
|
||||||
"--file", "dat.file", "--verbose"];
|
|
||||||
getopt(
|
getopt(
|
||||||
args,
|
args,
|
||||||
"length", &length,
|
"length", &length,
|
||||||
|
@ -1007,8 +1005,7 @@ unittest
|
||||||
|
|
||||||
//
|
//
|
||||||
string[] outputFiles;
|
string[] outputFiles;
|
||||||
args = (["program.name", "--output=myfile.txt",
|
args = ["program.name", "--output=myfile.txt", "--output", "yourfile.txt"];
|
||||||
"--output", "yourfile.txt"];
|
|
||||||
getopt(args, "output", &outputFiles);
|
getopt(args, "output", &outputFiles);
|
||||||
assert(outputFiles.length == 2
|
assert(outputFiles.length == 2
|
||||||
&& outputFiles[0] == "myfile.txt" && outputFiles[1] == "yourfile.txt");
|
&& outputFiles[0] == "myfile.txt" && outputFiles[1] == "yourfile.txt");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue