From 5b0fcc78a8f2789ae14d621127ede8a8d0fa0b2c Mon Sep 17 00:00:00 2001 From: Jonathan Laroche Date: Fri, 13 Dec 2024 00:08:34 -0500 Subject: [PATCH] Add test for not necessary quotes --- tests/cpu/ParseUtils_tests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/cpu/ParseUtils_tests.cpp b/tests/cpu/ParseUtils_tests.cpp index aefe1d38f..f4aaee7d3 100644 --- a/tests/cpu/ParseUtils_tests.cpp +++ b/tests/cpu/ParseUtils_tests.cpp @@ -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]); @@ -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" };