testDynamicStructEmptyString always failed (#3863)

There was 1 failure:
 1: N7CppUnit10TestCallerI7VarTestEE.testDynamicStructEmptyString
    "expected: "{ "Empty": "", "Space":   }" but was: "{ "Empty": "", "Space": " " }""
    in "src/VarTest.cpp", line 2294

It's happen because in test we call aStruct.toString(false).
It's mean that we don't expect wrapping, but expected result was written with wrapping
This commit is contained in:
Alexander B 2022-11-08 11:11:10 +03:00 committed by GitHub
parent 894180f943
commit aa48d39dbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2291,7 +2291,7 @@ void VarTest::testDynamicStructEmptyString()
DynamicStruct aStruct;
aStruct["Empty"] = "";
aStruct["Space"] = " ";
assertEqual(aStruct.toString(false), "{ \"Empty\": \"\", \"Space\": \" \" }");
assertEqual(aStruct.toString(true), "{ \"Empty\": \"\", \"Space\": \" \" }");
}