mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-29 20:59:45 +01:00
- fixed GH #362: Defect in Var::parseString when there is no space between value and newline
- fixed GH #314: JSON parsing bug - added GH #313: MetaColumn additions for Data::ODBC and Data::SQLite
This commit is contained in:
@@ -2192,10 +2192,18 @@ void VarTest::testJSONDeserializeString()
|
||||
assert (b.convert<std::string>() == "test");
|
||||
|
||||
Var c('c');
|
||||
std::string tst2 = Var::toString(c);
|
||||
Var b2 = Var::parse(tst2);
|
||||
tst = Var::toString(c);
|
||||
Var b2 = Var::parse(tst);
|
||||
char cc = b2.convert<char>();
|
||||
assert (cc == 'c');
|
||||
|
||||
tst = "{ \"a\" : 1, \"b\" : 2 \n}";
|
||||
a = Var::parse(tst);
|
||||
assert(a.toString() == "{ \"a\" : \"1\", \"b\" : \"2\" }");
|
||||
|
||||
tst = "{ \"a\" : 1, \"b\" : 2\n}";
|
||||
a = Var::parse(tst);
|
||||
assert(a.toString() == "{ \"a\" : \"1\", \"b\" : \"2\" }");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user