mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 19:10:20 +01:00
Poco 1.9.1 assert true (#2255)
* Rename assert by assertTrue * Update submodules * Missing assertTrue * Rename poco_assertTrue to poco_assert * Rename poco_assertTrue to poco_assert
This commit is contained in:
committed by
Aleksandar Fabijanic
parent
5a1bf5eb4a
commit
960ecb38f0
File diff suppressed because it is too large
Load Diff
@@ -106,26 +106,26 @@ private:
|
||||
catch (Poco::JSON::JSONException& jsone)
|
||||
{
|
||||
std::cout << jsone.message() << std::endl;
|
||||
assert(false);
|
||||
assertTrue (false);
|
||||
}
|
||||
|
||||
assert(result.type() == typeid(Poco::JSON::Object::Ptr));
|
||||
assertTrue (result.type() == typeid(Poco::JSON::Object::Ptr));
|
||||
|
||||
Poco::JSON::Object::Ptr object = result.extract<Poco::JSON::Object::Ptr>();
|
||||
Poco::Dynamic::Var test = object->get("test");
|
||||
assert(test.isNumeric());
|
||||
assertTrue (test.isNumeric());
|
||||
T value = test;
|
||||
assert(value == number);
|
||||
assertTrue (value == number);
|
||||
|
||||
Poco::DynamicStruct ds = *object;
|
||||
assert(!ds["test"].isEmpty());
|
||||
assert(ds["test"].isNumeric());
|
||||
assert(ds["test"] == number);
|
||||
assertTrue (!ds["test"].isEmpty());
|
||||
assertTrue (ds["test"].isNumeric());
|
||||
assertTrue (ds["test"] == number);
|
||||
|
||||
const Poco::DynamicStruct& rds = *object;
|
||||
assert(!rds["test"].isEmpty());
|
||||
assert(rds["test"].isNumeric());
|
||||
assert(rds["test"] == number);
|
||||
assertTrue (!rds["test"].isEmpty());
|
||||
assertTrue (rds["test"].isNumeric());
|
||||
assertTrue (rds["test"] == number);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user