mirror of
https://github.com/dlang/phobos.git
synced 2025-04-26 05:00:35 +03:00
This commit is contained in:
parent
393d8264bb
commit
39663ea8fe
1 changed files with 6 additions and 1 deletions
|
@ -992,7 +992,7 @@ private auto _stripDrive(R)(R path)
|
|||
Returns:
|
||||
index of extension separator (the dot), or -1 if not found
|
||||
*/
|
||||
private ptrdiff_t extSeparatorPos(R)(const R path)
|
||||
private ptrdiff_t extSeparatorPos(R)(R path)
|
||||
if (isRandomAccessRange!R && hasLength!R && isSomeChar!(ElementType!R) ||
|
||||
isNarrowString!R)
|
||||
{
|
||||
|
@ -1280,6 +1280,11 @@ if (isSomeChar!C1 && isSomeChar!C2)
|
|||
assert(withExtension("file.ext"w.byWchar, ".").array == "file."w);
|
||||
}
|
||||
|
||||
@safe unittest
|
||||
{
|
||||
assert(chainPath("directory", "file").withExtension(".ext").array == buildPath("directory", "file.ext"));
|
||||
}
|
||||
|
||||
@safe unittest
|
||||
{
|
||||
import std.algorithm.comparison : equal;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue