From f881c3d596ef69a20eb963cd971ee4571939a8ef Mon Sep 17 00:00:00 2001 From: Jonathan Stone Date: Tue, 17 Sep 2024 17:56:47 -0700 Subject: [PATCH] Add documentation line Signed-off-by: Jonathan Stone --- source/MaterialXTest/MaterialXCore/Value.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/MaterialXTest/MaterialXCore/Value.cpp b/source/MaterialXTest/MaterialXCore/Value.cpp index 4ab0e61801..31c333d211 100644 --- a/source/MaterialXTest/MaterialXCore/Value.cpp +++ b/source/MaterialXTest/MaterialXCore/Value.cpp @@ -79,6 +79,7 @@ TEST_CASE("Value strings", "[value]") REQUIRE_THROWS_AS(mx::fromValueString("1"), mx::ExceptionTypeError); REQUIRE_THROWS_AS(mx::fromValueString("1"), mx::ExceptionTypeError); + // Parse value strings using structure syntax features. REQUIRE(mx::parseStructValueString("{{1;2;3};4}") == (std::vector{"{1;2;3}","4"})); REQUIRE(mx::parseStructValueString("{1;2;3;4}") == (std::vector{"1","2","3","4"})); REQUIRE(mx::parseStructValueString("{1;{2;3};4}") == (std::vector{"1","{2;3}","4"}));