Skip to content

Commit

Permalink
Adding missing defines to constant_strings.h and fixing test_0045/dat…
Browse files Browse the repository at this point in the history
…a/test.cpp. (#673) (#834)
  • Loading branch information
sirpalee authored Jul 14, 2021
1 parent b174428 commit dd6c9ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/constant_strings.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ ASTR2(catmull_rom, "catmull-rom");
ASTR2(constantArray, "constant ARRAY");
ASTR2(constantArrayFloat, "CONSTANT ARRAY FLOAT");
ASTR2(constantInt, "constant INT");
ASTR2(deformKeys, "arnold:deform_keys");
ASTR2(houdiniFps, "houdini:fps");
ASTR2(hydraPrimId, "hydra_primId");
ASTR2(inputs_code, "inputs:code");
ASTR2(primvars_arnold_subdiv_type, "primvars:arnold:subdiv_type");
Expand Down
3 changes: 3 additions & 0 deletions testsuite/test_0045/data/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#include "translator/writer/registry.h"
#include "translator/writer/write_geometry.h"

#include <common_utils.h>

#include <string>
#include <vector>

Expand All @@ -14,6 +16,7 @@ TEST(ArnoldUsdMakeCamelCase, ArnoldUsdMakeCamelCase)
{
EXPECT_EQ(ArnoldUsdMakeCamelCase("camelCase"), "camelCase");
EXPECT_EQ(ArnoldUsdMakeCamelCase("snake_case"), "snakeCase");
EXPECT_EQ(ArnoldUsdMakeCamelCase("_snake_case"), "SnakeCase");
EXPECT_EQ(ArnoldUsdMakeCamelCase("snake__case"), "snakeCase");
}

Expand Down

0 comments on commit dd6c9ec

Please sign in to comment.