Searched refs:NumT (Results 1 – 3 of 3) sorted by relevance
/arkcompiler/runtime_core/libpandabase/tests/ |
D | json_parser_test.cpp | 162 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/ |
D | json_parser.h | 36 using NumT = double; variable 77 std::variant<std::monostate, StringT, NumT, BoolT, ArrayT, JsonObjPointer> value_;
|
D | json_parser.cpp | 214 NumT num = 0; in GetNum()
|