580 CCASSERT(v1.getType() == Value::Type::NONE,
"v1's value type should be VALUE::Type::NONE.");
581 CCASSERT(v1.isNull(),
"v1 is null.");
584 CCASSERT(v2.getType() == Value::Type::INTEGER,
"v2's value type should be VALUE::Type::INTEGER.");
585 CCASSERT(!v2.isNull(),
"v2 is not null.");
588 CCASSERT(v3.getType() == Value::Type::FLOAT,
"v3's value type should be VALUE::Type::FLOAT.");
589 CCASSERT(!v3.isNull(),
"v3 is not null.");
592 CCASSERT(v4.getType() == Value::Type::DOUBLE,
"v4's value type should be VALUE::Type::DOUBLE.");
593 CCASSERT(!v4.isNull(),
"v4 is not null.");
595 unsigned char byte = 50;
597 CCASSERT(v5.getType() == Value::Type::BYTE,
"v5's value type should be Value::Type::BTYE.");
598 CCASSERT(!v5.isNull(),
"v5 is not null.");
601 CCASSERT(v6.getType() == Value::Type::BOOLEAN,
"v6's value type is Value::Type::BOOLEAN.");
602 CCASSERT(!v6.isNull(),
"v6 is not null.");
605 CCASSERT(v7.getType() == Value::Type::STRING,
"v7's value type is Value::type::STRING.");
606 CCASSERT(!v7.isNull(),
"v7 is not null.");
608 Value v8(std::string(
"string2"));
609 CCASSERT(v8.getType() == Value::Type::STRING,
"v8's value type is Value::Type::STRING.");
610 CCASSERT(!v8.isNull(),
"v8 is not null.");
612 auto createValueVector = [&](){
621 Value v9(createValueVector());
622 CCASSERT(v9.getType() == Value::Type::VECTOR,
"v9's value type is Value::Type::VECTOR.");
623 CCASSERT(!v9.isNull(),
"v9 is not null.");
625 auto createValueMap = [&](){
633 Value v10(createValueMap());
634 CCASSERT(v10.getType() == Value::Type::MAP,
"v10's value type is Value::Type::MAP.");
635 CCASSERT(!v10.isNull(),
"v10 is not null.");
637 auto createValueMapIntKey = [&](){
645 Value v11(createValueMapIntKey());
646 CCASSERT(v11.getType() == Value::Type::INT_KEY_MAP,
"v11's value type is Value::Type::INT_KEY_MAP.");
647 CCASSERT(!v11.isNull(),
"v11 is not null.");
virtual void onEnter() override