summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/runnable/imports/test18322import.d
blob: 8916cfd2a90e335253746d3657d5f43736524f79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
}