blob: 8916cfd2a90e335253746d3657d5f43736524f79 [file] [log] [blame]
module test18322import;
void fun(string templateFileFullPath = __FILE_FULL_PATH__,
string templateFile = __FILE__)(string expectedFilename, string fileFullPath = __FILE_FULL_PATH__)
{
// make sure it is an absolute path
version(Windows)
assert(fileFullPath[1..3] == ":\\");
else
assert(fileFullPath[0] == '/');
assert(templateFileFullPath == fileFullPath);
assert(fileFullPath[$ - expectedFilename.length .. $] == expectedFilename);
assert(fileFullPath[$ - templateFile.length .. $] == templateFile);
}