summaryrefslogtreecommitdiffstats
path: root/tools/slang-unit-test/unit-test-string.cpp
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2023-04-25 10:43:29 -0400
committerGitHub <noreply@github.com>2023-04-25 10:43:29 -0400
commit7b7c095b37e85ca3a8f55eff1c3d9643d467b8e0 (patch)
tree9c71955dbc956b0058b19818ca127c8132cda512 /tools/slang-unit-test/unit-test-string.cpp
parent284cee1f246c072f190c87c8fb60c1d2181e458f (diff)
Dictionary using lowerCamel (#2835)
* #include an absolute path didn't work - because paths were taken to always be relative. * WIP lowerCamel Dictionary. * WIP more lowerCamel fixes for Dictionary. * Add/Remove/Clear * GetValue/Contains * Fix tabs in dictionary. Count -> getCount * Fix fields with caps. * Key -> key Value -> value Use m_ for members where appropriate. Use lowerCamel in linked list. * Some small fixes/improvements to Dictionary. * Kick CI.
Diffstat (limited to 'tools/slang-unit-test/unit-test-string.cpp')
-rw-r--r--tools/slang-unit-test/unit-test-string.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/slang-unit-test/unit-test-string.cpp b/tools/slang-unit-test/unit-test-string.cpp
index 629ed2373..230cb72f8 100644
--- a/tools/slang-unit-test/unit-test-string.cpp
+++ b/tools/slang-unit-test/unit-test-string.cpp
@@ -159,13 +159,13 @@ SLANG_UNIT_TEST(string)
StringBuilder builder;
{
- builder.Clear();
+ builder.clear();
StringUtil::join(values, 0, ',', builder);
SLANG_CHECK(builder == "");
}
{
- builder.Clear();
+ builder.clear();
StringUtil::join(values, 1, ',', builder);
SLANG_CHECK(builder == "hello");
@@ -174,7 +174,7 @@ SLANG_UNIT_TEST(string)
}
{
- builder.Clear();
+ builder.clear();
StringUtil::join(values, 2, ',', builder);
SLANG_CHECK(builder == "hello,world");
@@ -183,7 +183,7 @@ SLANG_UNIT_TEST(string)
}
{
- builder.Clear();
+ builder.clear();
StringUtil::join(values, 3, UnownedStringSlice("ab"), builder);
SLANG_CHECK(builder == "helloabworldab!");
@@ -212,7 +212,7 @@ SLANG_UNIT_TEST(string)
for (auto value : values)
{
- buf.Clear();
+ buf.clear();
_append(value, buf);
UnownedStringSlice slice = buf.getUnownedSlice();
@@ -244,7 +244,7 @@ SLANG_UNIT_TEST(string)
for (auto value : values)
{
- buf.Clear();
+ buf.clear();
buf << value;