mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 10:13:51 +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:
parent
894180f943
commit
aa48d39dbd
@ -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\": \" \" }");
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user