mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-05-02 15:41:35 +02:00
test Json::Value::null
This commit is contained in:
parent
75665630c3
commit
525c8950c5
@ -282,6 +282,8 @@ JSONTEST_FIXTURE(ValueTest, null) {
|
|||||||
JSONTEST_ASSERT_EQUAL(0.0, null_.asDouble());
|
JSONTEST_ASSERT_EQUAL(0.0, null_.asDouble());
|
||||||
JSONTEST_ASSERT_EQUAL(0.0, null_.asFloat());
|
JSONTEST_ASSERT_EQUAL(0.0, null_.asFloat());
|
||||||
JSONTEST_ASSERT_STRING_EQUAL("", null_.asString());
|
JSONTEST_ASSERT_STRING_EQUAL("", null_.asString());
|
||||||
|
|
||||||
|
JSONTEST_ASSERT_EQUAL(Json::Value::null, null_);
|
||||||
}
|
}
|
||||||
|
|
||||||
JSONTEST_FIXTURE(ValueTest, strings) {
|
JSONTEST_FIXTURE(ValueTest, strings) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user