Skip to content

Commit

Permalink
Add test for not necessary quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
larochj committed Dec 13, 2024
1 parent 6df1d60 commit b168c31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/cpu/ParseUtils_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ OCIO_ADD_TEST(ParseUtils, split_string_env_style)
OCIO_CHECK_EQUAL("test", outputvec[3]);
outputvec.clear();

outputvec = OCIO::SplitStringEnvStyle(" This : is : a: test ");
outputvec = OCIO::SplitStringEnvStyle(" \"This\" : is : a: test ");
OCIO_CHECK_EQUAL(4, outputvec.size());
OCIO_CHECK_EQUAL("This", outputvec[0]);
OCIO_CHECK_EQUAL("is", outputvec[1]);
Expand Down Expand Up @@ -493,7 +493,7 @@ OCIO_ADD_TEST(ParseUtils, join_string_env_style)
outputvec = { "This", "is \": a: test" };
OCIO_CHECK_EQUAL( "This, \"is \": a: test\"", OCIO::JoinStringEnvStyle(outputvec) );

outputvec = { "This, is, a, string", "this, one, too" };
outputvec = { "\"This, is, a, string\"", "this, one, too" };
OCIO_CHECK_EQUAL( "\"This, is, a, string\", \"this, one, too\"" , OCIO::JoinStringEnvStyle(outputvec) );

outputvec = { "This", "is: ", "\"a very good,\"", " fine, helpful, and useful ", "test" };
Expand Down

0 comments on commit b168c31

Please sign in to comment.