File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -992,7 +992,7 @@ private auto _stripDrive(R)(R path)
992992 Returns:
993993 index of extension separator (the dot), or -1 if not found
994994*/
995- private ptrdiff_t extSeparatorPos (R)(const R path)
995+ private ptrdiff_t extSeparatorPos (R)(R path)
996996if (isRandomAccessRange! R && hasLength! R && isSomeChar! (ElementType! R) ||
997997 isNarrowString! R)
998998{
@@ -1280,6 +1280,11 @@ if (isSomeChar!C1 && isSomeChar!C2)
12801280 assert (withExtension(" file.ext" w.byWchar, " ." ).array == " file." w);
12811281}
12821282
1283+ @safe unittest
1284+ {
1285+ assert (chainPath(" directory" , " file" ).withExtension(" .ext" ).array == buildPath(" directory" , " file.ext" ));
1286+ }
1287+
12831288@safe unittest
12841289{
12851290 import std.algorithm.comparison : equal;
You can’t perform that action at this time.
0 commit comments