mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 18:42:41 +01:00
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:
@@ -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\": \" \" }");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user