mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 06:00:35 +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;
|
||||
|
||||
uint paranoid = 2;
|
||||
string[] args = (["program.name",
|
||||
"--paranoid", "--paranoid", "--paranoid"];
|
||||
string[] args = ["program.name", "--paranoid", "--paranoid", "--paranoid"];
|
||||
getopt(args, "paranoid+", ¶noid);
|
||||
assert(paranoid == 5, to!(string)(paranoid));
|
||||
|
||||
|
@ -993,8 +992,7 @@ unittest
|
|||
string data = "file.dat";
|
||||
int length = 24;
|
||||
bool verbose = false;
|
||||
args = (["program.name", "--length=5",
|
||||
"--file", "dat.file", "--verbose"];
|
||||
args = ["program.name", "--length=5", "--file", "dat.file", "--verbose"];
|
||||
getopt(
|
||||
args,
|
||||
"length", &length,
|
||||
|
@ -1007,8 +1005,7 @@ unittest
|
|||
|
||||
//
|
||||
string[] outputFiles;
|
||||
args = (["program.name", "--output=myfile.txt",
|
||||
"--output", "yourfile.txt"];
|
||||
args = ["program.name", "--output=myfile.txt", "--output", "yourfile.txt"];
|
||||
getopt(args, "output", &outputFiles);
|
||||
assert(outputFiles.length == 2
|
||||
&& outputFiles[0] == "myfile.txt" && outputFiles[1] == "yourfile.txt");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue