| 1 |
module test18322import; |
| 2 |
void fun(string templateFileFullPath = __FILE_FULL_PATH__, |
| 3 |
string templateFile = __FILE__)(string expectedFilename, string fileFullPath = __FILE_FULL_PATH__) |
| 4 |
{ |
| 5 |
// make sure it is an absolute path |
| 6 |
version(Windows) |
| 7 |
assert(fileFullPath[1..3] == ":\\"); |
| 8 |
else |
| 9 |
assert(fileFullPath[0] == '/'); |
| 10 |
|
| 11 |
assert(templateFileFullPath == fileFullPath); |
| 12 |
assert(fileFullPath[$ - expectedFilename.length .. $] == expectedFilename); |
| 13 |
assert(fileFullPath[$ - templateFile.length .. $] == templateFile); |
| 14 |
} |