diff options
Diffstat (limited to 'tools/slang-test/unit-test-path.cpp')
| -rw-r--r-- | tools/slang-test/unit-test-path.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tools/slang-test/unit-test-path.cpp b/tools/slang-test/unit-test-path.cpp index 2ad66792f..35462f703 100644 --- a/tools/slang-test/unit-test-path.cpp +++ b/tools/slang-test/unit-test-path.cpp @@ -38,21 +38,21 @@ static void pathUnitTest() SLANG_CHECK(Path::simplify("tests/preprocessor/.\\pragma-once-a.h") == "tests/preprocessor/pragma-once-a.h"); - SLANG_CHECK(Path::isRelative(".")); - SLANG_CHECK(Path::isRelative("..")); - SLANG_CHECK(Path::isRelative("blah/..")); + SLANG_CHECK(Path::hasRelativeElement(".")); + SLANG_CHECK(Path::hasRelativeElement("..")); + SLANG_CHECK(Path::hasRelativeElement("blah/..")); - SLANG_CHECK(Path::isRelative("blah/.././a")); - SLANG_CHECK(Path::isRelative("a") == false); - SLANG_CHECK(Path::isRelative("blah/a") == false); - SLANG_CHECK(Path::isRelative("a:\\blah/a") == false); + SLANG_CHECK(Path::hasRelativeElement("blah/.././a")); + SLANG_CHECK(Path::hasRelativeElement("a") == false); + SLANG_CHECK(Path::hasRelativeElement("blah/a") == false); + SLANG_CHECK(Path::hasRelativeElement("a:\\blah/a") == false); - SLANG_CHECK(Path::isRelative("a:/what/.././../is/./../this/.")); + SLANG_CHECK(Path::hasRelativeElement("a:/what/.././../is/./../this/.")); - SLANG_CHECK(Path::isRelative("a:/what/.././../is/./../this/./")); + SLANG_CHECK(Path::hasRelativeElement("a:/what/.././../is/./../this/./")); - SLANG_CHECK(Path::isRelative("a:\\what\\..\\.\\..\\is\\.\\..\\this\\.\\")); + SLANG_CHECK(Path::hasRelativeElement("a:\\what\\..\\.\\..\\is\\.\\..\\this\\.\\")); } |
