mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 19:51:58 +01:00
committed by
Alex Fabijanic
parent
bd81aec779
commit
fbd229ee4a
@@ -980,6 +980,7 @@ void JSONTest::testStringElement()
|
||||
json = "[ \"\\u0017\" ]";
|
||||
Var v = Parser().parse(json);
|
||||
Stringifier::condense(v, s);
|
||||
std::string ss = s.str();
|
||||
assert(s.str() == "[\"\\u0017\"]");
|
||||
}
|
||||
|
||||
@@ -1533,7 +1534,7 @@ void JSONTest::testStringify()
|
||||
|
||||
void JSONTest::testStringifyPreserveOrder()
|
||||
{
|
||||
Object presObj(Object::JSON_PRESERVE_KEY_ORDER);
|
||||
Object presObj(Poco::JSON_PRESERVE_KEY_ORDER);
|
||||
presObj.set("foo", 0);
|
||||
presObj.set("bar", 0);
|
||||
presObj.set("baz", 0);
|
||||
@@ -2017,7 +2018,7 @@ std::string JSONTest::getTestFilesPath(const std::string& type)
|
||||
|
||||
void JSONTest::testCopy()
|
||||
{
|
||||
Object obj1(Object::JSON_PRESERVE_KEY_ORDER);
|
||||
Object obj1(Poco::JSON_PRESERVE_KEY_ORDER);
|
||||
obj1.set("foo", 0);
|
||||
obj1.set("bar", 0);
|
||||
obj1.set("baz", 0);
|
||||
@@ -2072,7 +2073,7 @@ void JSONTest::testCopy()
|
||||
|
||||
void JSONTest::testMove()
|
||||
{
|
||||
Object obj1(Object::JSON_PRESERVE_KEY_ORDER);
|
||||
Object obj1(Poco::JSON_PRESERVE_KEY_ORDER);
|
||||
obj1.set("foo", 0);
|
||||
obj1.set("bar", 0);
|
||||
obj1.set("baz", 0);
|
||||
@@ -2113,7 +2114,7 @@ void JSONTest::testMove()
|
||||
assert (nl[1] == "baz");
|
||||
assert (nl[2] == "foo");
|
||||
|
||||
Object obj5(Object::JSON_PRESERVE_KEY_ORDER);
|
||||
Object obj5(Poco::JSON_PRESERVE_KEY_ORDER);
|
||||
obj5.set("foo", 0);
|
||||
obj5.set("bar", 0);
|
||||
obj5.set("baz", 0);
|
||||
|
||||
Reference in New Issue
Block a user