mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 05:30:33 +03:00
std.process: Explain escapeShellCommand test failures
This commit is contained in:
parent
baaa1117de
commit
8c2b3d18fa
1 changed files with 6 additions and 2 deletions
|
@ -3678,10 +3678,14 @@ string escapeShellCommand(scope const(char[])[] args...) @safe pure
|
|||
];
|
||||
|
||||
foreach (test; tests)
|
||||
{
|
||||
auto actual = escapeShellCommand(test.args);
|
||||
version (Windows)
|
||||
assert(escapeShellCommand(test.args) == test.windows);
|
||||
string expected = test.windows;
|
||||
else
|
||||
assert(escapeShellCommand(test.args) == test.posix );
|
||||
string expected = test.posix;
|
||||
assert(actual == expected, "\nExpected: " ~ expected ~ "\nGot: " ~ actual);
|
||||
}
|
||||
}
|
||||
|
||||
private string escapeShellCommandString(return scope string command) @safe pure
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue