summaryrefslogtreecommitdiffstats
path: root/tools/slang-test/unit-test-path.cpp
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2019-04-24 11:18:58 -0400
committerTim Foley <tfoleyNV@users.noreply.github.com>2019-04-24 08:18:58 -0700
commit1004f50bd7d0032411a564ad4625055e982902ea (patch)
treed2bd2d0b8e48953361dcd33445f10cb084ffe0d7 /tools/slang-test/unit-test-path.cpp
parent9cb75371f5ea45640ae0e3998eb27bcda0a22cd9 (diff)
* Make Path:: use lowerCamel method names as per coding standard (#952)
* Small improvements to make closer to standard * GetDirectoryName -> getParentDirectory - previous method name's action was somewhat unclear, hopefully this is better
Diffstat (limited to 'tools/slang-test/unit-test-path.cpp')
-rw-r--r--tools/slang-test/unit-test-path.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/tools/slang-test/unit-test-path.cpp b/tools/slang-test/unit-test-path.cpp
index 712453e23..2ad66792f 100644
--- a/tools/slang-test/unit-test-path.cpp
+++ b/tools/slang-test/unit-test-path.cpp
@@ -11,48 +11,48 @@ static void pathUnitTest()
{
{
String path;
- SlangResult res = Path::GetCanonical(".", path);
+ SlangResult res = Path::getCanonical(".", path);
SLANG_CHECK(SLANG_SUCCEEDED(res));
String parentPath;
- res = Path::GetCanonical("..", parentPath);
+ res = Path::getCanonical("..", parentPath);
SLANG_CHECK(SLANG_SUCCEEDED(res));
- String parentPath2 = Path::GetDirectoryName(path);
+ String parentPath2 = Path::getParentDirectory(path);
SLANG_CHECK(parentPath == parentPath2);
}
// Test the paths
{
- SLANG_CHECK(Path::Simplify(".") == ".");
- SLANG_CHECK(Path::Simplify("..") == "..");
- SLANG_CHECK(Path::Simplify("blah/..") == ".");
+ SLANG_CHECK(Path::simplify(".") == ".");
+ SLANG_CHECK(Path::simplify("..") == "..");
+ SLANG_CHECK(Path::simplify("blah/..") == ".");
- SLANG_CHECK(Path::Simplify("blah/.././a") == "a");
+ SLANG_CHECK(Path::simplify("blah/.././a") == "a");
- SLANG_CHECK(Path::Simplify("a:/what/.././../is/./../this/.") == "a:/../this");
+ SLANG_CHECK(Path::simplify("a:/what/.././../is/./../this/.") == "a:/../this");
- SLANG_CHECK(Path::Simplify("a:/what/.././../is/./../this/./") == "a:/../this");
+ SLANG_CHECK(Path::simplify("a:/what/.././../is/./../this/./") == "a:/../this");
- SLANG_CHECK(Path::Simplify("a:\\what\\..\\.\\..\\is\\.\\..\\this\\.\\") == "a:/../this");
+ SLANG_CHECK(Path::simplify("a:\\what\\..\\.\\..\\is\\.\\..\\this\\.\\") == "a:/../this");
- SLANG_CHECK(Path::Simplify("tests/preprocessor/.\\pragma-once-a.h") == "tests/preprocessor/pragma-once-a.h");
+ 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::isRelative("."));
+ SLANG_CHECK(Path::isRelative(".."));
+ SLANG_CHECK(Path::isRelative("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::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::IsRelative("a:/what/.././../is/./../this/."));
+ SLANG_CHECK(Path::isRelative("a:/what/.././../is/./../this/."));
- SLANG_CHECK(Path::IsRelative("a:/what/.././../is/./../this/./"));
+ SLANG_CHECK(Path::isRelative("a:/what/.././../is/./../this/./"));
- SLANG_CHECK(Path::IsRelative("a:\\what\\..\\.\\..\\is\\.\\..\\this\\.\\"));
+ SLANG_CHECK(Path::isRelative("a:\\what\\..\\.\\..\\is\\.\\..\\this\\.\\"));
}