Home
last modified time | relevance | path

Searched refs:NumT (Results 1 – 3 of 3) sorted by relevance

/arkcompiler/runtime_core/libpandabase/tests/
Djson_parser_test.cpp162 ASSERT_NE(obj.GetValue<JsonObject::NumT>("key_0"), nullptr);
163 ASSERT_EQ(*obj.GetValue<JsonObject::NumT>("key_0"), 0);
165 ASSERT_NE(obj.GetValue<JsonObject::NumT>("key_1"), nullptr);
166 ASSERT_EQ(*obj.GetValue<JsonObject::NumT>("key_1"), 128);
168 ASSERT_NE(obj.GetValue<JsonObject::NumT>("key_2"), nullptr);
169 ASSERT_EQ(*obj.GetValue<JsonObject::NumT>("key_2"), -256);
171 ASSERT_NE(obj.GetValue<JsonObject::NumT>("key_3"), nullptr);
172 ASSERT_EQ(*obj.GetValue<JsonObject::NumT>("key_3"), .512);
174 ASSERT_NE(obj.GetValue<JsonObject::NumT>("key_4"), nullptr);
175 ASSERT_EQ(*obj.GetValue<JsonObject::NumT>("key_4"), 1.024);
[all …]
/arkcompiler/runtime_core/libpandabase/utils/
Djson_parser.h36 using NumT = double; variable
77 std::variant<std::monostate, StringT, NumT, BoolT, ArrayT, JsonObjPointer> value_;
Djson_parser.cpp214 NumT num = 0; in GetNum()