Home
last modified time | relevance | path

Searched refs:CHECK (Results 1 - 25 of 727) sorted by relevance

12345678910>>...30

/third_party/json/tests/src/
H A Dunit-iterators1.cpp22 CHECK(it.m_object == nullptr);
25 CHECK(cit.m_object == nullptr);
36 CHECK(it != j.end());
37 CHECK(*it == j);
40 CHECK(it != j.begin());
41 CHECK(it == j.end());
44 CHECK(it == j.begin());
45 CHECK(it != j.end());
46 CHECK(*it == j);
49 CHECK(i
[all...]
H A Dunit-items.cpp37 CHECK(i.key() == "A");
38 CHECK(i.value() == json(1));
44 CHECK(i.key() == "B");
45 CHECK(i.value() == json(2));
56 CHECK(counter == 3);
70 CHECK(i.key() == "A");
71 CHECK(i.value() == json(1));
75 CHECK(i.value() == json(11));
81 CHECK(i.key() == "B");
82 CHECK(
[all...]
H A Dunit-inspection.cpp25 CHECK(!j.is_null());
26 CHECK(!j.is_boolean());
27 CHECK(!j.is_number());
28 CHECK(!j.is_number_integer());
29 CHECK(!j.is_number_unsigned());
30 CHECK(!j.is_number_float());
31 CHECK(!j.is_binary());
32 CHECK(j.is_object());
33 CHECK(!j.is_array());
34 CHECK(!
[all...]
H A Dunit-class_parser.cpp219 CHECK(j_nothrow == j); in parser_helper()
224 CHECK(j_sax == j); in parser_helper()
244 CHECK(ok_noexcept == ok_accept); in accept_helper()
249 CHECK(json::parser(nlohmann::detail::input_adapter(s)).accept(false) == !el.errored); in accept_helper()
260 CHECK(ok_noexcept == ok_noexcept_cb); in accept_helper()
278 CHECK(json::accept(s)); in comments_helper()
282 CHECK(json::accept(s, true)); in comments_helper()
298 CHECK(!json::accept(json_with_comment)); in comments_helper()
301 CHECK(json::accept(json_with_comment, true)); in comments_helper()
313 CHECK(parser_helpe
[all...]
H A Dunit-pointer_access.cpp23 CHECK(p1 == value.get_ptr<test_type*>());
24 CHECK(*p1 == value.get<test_type>());
27 CHECK(p2 == value.get_ptr<const test_type*>());
28 CHECK(*p2 == value.get<test_type>());
31 CHECK(p3 == value.get_ptr<const test_type* const>());
32 CHECK(*p3 == value.get<test_type>());
35 CHECK(value.get_ptr<json::object_t*>() != nullptr);
36 CHECK(value.get_ptr<json::array_t*>() == nullptr);
37 CHECK(value.get_ptr<json::string_t*>() == nullptr);
38 CHECK(valu
[all...]
H A Dunit-element_access2.cpp31 CHECK(j.at("integer") == Json(1));
32 CHECK(j.at("unsigned") == Json(1u));
33 CHECK(j.at("boolean") == Json(true));
34 CHECK(j.at("null") == Json(nullptr));
35 CHECK(j.at("string") == Json("hello world"));
36 CHECK(j.at("floating") == Json(42.23));
37 CHECK(j.at("object") == Json::object());
38 CHECK(j.at("array") == Json({1, 2, 3}));
40 CHECK(j_const.at("integer") == Json(1));
41 CHECK(j_cons
[all...]
H A Dunit-binary_formats.cpp35 CHECK(json_size == 2090303);
36 CHECK(bjdata_1_size == 1112030);
37 CHECK(bjdata_2_size == 1224148);
38 CHECK(bjdata_3_size == 1224148);
39 CHECK(bson_size == 1794522);
40 CHECK(cbor_size == 1055552);
41 CHECK(msgpack_size == 1056145);
42 CHECK(ubjson_1_size == 1112030);
43 CHECK(ubjson_2_size == 1224148);
44 CHECK(ubjson_3_siz
[all...]
H A Dunit-class_lexer.cpp41 CHECK((scan_string("[") == json::lexer::token_type::begin_array));
42 CHECK((scan_string("]") == json::lexer::token_type::end_array));
43 CHECK((scan_string("{") == json::lexer::token_type::begin_object));
44 CHECK((scan_string("}") == json::lexer::token_type::end_object));
45 CHECK((scan_string(",") == json::lexer::token_type::value_separator));
46 CHECK((scan_string(":") == json::lexer::token_type::name_separator));
51 CHECK((scan_string("null") == json::lexer::token_type::literal_null));
52 CHECK((scan_string("true") == json::lexer::token_type::literal_true));
53 CHECK((scan_string("false") == json::lexer::token_type::literal_false));
58 CHECK((scan_strin
[all...]
H A Dunit-capacity.cpp26 CHECK(j.empty() == false);
27 CHECK(j_const.empty() == false);
32 CHECK(j.empty() == (j.begin() == j.end()));
33 CHECK(j_const.empty() == (j_const.begin() == j_const.end()));
44 CHECK(j.empty() == false);
45 CHECK(j_const.empty() == false);
50 CHECK(j.empty() == (j.begin() == j.end()));
51 CHECK(j_const.empty() == (j_const.begin() == j_const.end()));
64 CHECK(j.empty() == true);
65 CHECK(j_cons
[all...]
H A Dunit-modifiers.cpp25 CHECK(j == json(json::value_t::boolean));
26 CHECK(j == json(k.type()));
35 CHECK(j == json(json::value_t::string));
36 CHECK(j == json(k.type()));
47 CHECK(j.empty());
48 CHECK(j == json(json::value_t::array));
49 CHECK(j == json(k.type()));
58 CHECK(j.empty());
59 CHECK(j == json(json::value_t::array));
60 CHECK(
[all...]
H A Dunit-ubjson.cpp107 CHECK(result.empty());
115 CHECK(result == expected);
118 CHECK(json::from_ubjson(result) == j);
119 CHECK(json::from_ubjson(result, true, false) == j);
129 CHECK(result == expected);
132 CHECK(json::from_ubjson(result) == j);
133 CHECK(json::from_ubjson(result, true, false) == j);
141 CHECK(result == expected);
144 CHECK(json::from_ubjson(result) == j);
145 CHECK(jso
[all...]
H A Dunit-iterators2.cpp49 CHECK(it1 == it1);
50 CHECK(!(it1 == it2));
51 CHECK(!(it1 == it3));
52 CHECK(!(it2 == it3));
53 CHECK(it1_c == it1_c);
54 CHECK(!(it1_c == it2_c));
55 CHECK(!(it1_c == it3_c));
56 CHECK(!(it2_c == it3_c));
62 CHECK( (it1 != it1) == !(it1 == it1) );
63 CHECK( (it
[all...]
H A Dunit-ordered_map.cpp23 CHECK(om.size() == 3);
32 CHECK(com.size() == 3);
44 CHECK(om.at(std::string("eins")) == std::string("one"));
45 CHECK(com.at(std::string("eins")) == std::string("one"));
54 CHECK(om.at(eins) == std::string("one"));
55 CHECK(com.at(eins) == std::string("one"));
62 CHECK(om.at("eins") == std::string("one"));
63 CHECK(com.at("eins") == std::string("one"));
77 CHECK(om[std::string("eins")] == std::string("one"));
78 CHECK(co
[all...]
H A Dunit-json_pointer.cpp69 CHECK(j[json::json_pointer()] == j);
70 CHECK(j[json::json_pointer("")] == j);
71 CHECK(j.contains(json::json_pointer()));
72 CHECK(j.contains(json::json_pointer("")));
75 CHECK(j[json::json_pointer("/foo")] == j["foo"]);
76 CHECK(j.contains(json::json_pointer("/foo")));
77 CHECK(j[json::json_pointer("/foo/0")] == j["foo"][0]);
78 CHECK(j[json::json_pointer("/foo/1")] == j["foo"][1]);
79 CHECK(j["/foo/1"_json_pointer] == j["foo"][1]);
80 CHECK(
[all...]
H A Dunit-msgpack.cpp111 CHECK(result.empty());
119 CHECK(result == expected);
122 CHECK(json::from_msgpack(result) == j);
123 CHECK(json::from_msgpack(result, true, false) == j);
133 CHECK(result == expected);
136 CHECK(json::from_msgpack(result) == j);
137 CHECK(json::from_msgpack(result, true, false) == j);
145 CHECK(result == expected);
148 CHECK(json::from_msgpack(result) == j);
149 CHECK(jso
[all...]
H A Dunit-constructor1.cpp32 CHECK(j.type() == t);
39 CHECK(j.type() == t);
46 CHECK(j.type() == t);
53 CHECK(j.type() == t);
60 CHECK(j.type() == t);
61 CHECK(j == false);
68 CHECK(j.type() == t);
69 CHECK(j == "");
76 CHECK(j.type() == t);
77 CHECK(
[all...]
H A Dunit-cbor.cpp109 CHECK(result.empty());
118 CHECK(result == expected);
127 CHECK(result == expected);
135 CHECK(result == expected);
138 CHECK(json::from_cbor(result) == j);
139 CHECK(json::from_cbor(result, true, false) == j);
149 CHECK(result == expected);
152 CHECK(json::from_cbor(result) == j);
153 CHECK(json::from_cbor(result, true, false) == j);
161 CHECK(resul
[all...]
H A Dunit-bjdata.cpp155 CHECK(value_in_range_of<of_type>(val_min));
156 CHECK(value_in_range_of<of_type>(val_min2));
166 CHECK(value_in_range_of<of_type>(val_max));
167 CHECK(value_in_range_of<of_type>(val_max2));
217 CHECK(std::is_sorted(br.bjd_optimized_type_markers.begin(), br.bjd_optimized_type_markers.end()));
218 CHECK(std::is_sorted(br.bjd_types_map.begin(), br.bjd_types_map.end()));
228 CHECK(result.empty());
236 CHECK(result == expected);
239 CHECK(json::from_bjdata(result) == j);
240 CHECK(jso
[all...]
H A Dunit-serialization.cpp26 CHECK(ss.str() == "[\"foo\",1,2,3,false,{\"one\":1}]");
34 CHECK(ss.str() ==
43 CHECK(ss.str() ==
55 CHECK(ss.str() == "[\"foo\",1,2,3,false,{\"one\":1}]");
64 CHECK(ss.str() ==
75 CHECK(ss.str() ==
88 CHECK(j.dump(-1, ' ', false, json::error_handler_t::ignore) == "\"äü\"");
89 CHECK(j.dump(-1, ' ', false, json::error_handler_t::replace) == "\"ä\xEF\xBF\xBDü\"");
90 CHECK(j.dump(-1, ' ', true, json::error_handler_t::replace) == "\"\\u00e4\\ufffd\\u00fc\"");
99 CHECK(
[all...]
H A Dunit-class_const_iterator.cpp74 CHECK((it == j.cbegin()));
82 CHECK((it == j.cbegin()));
90 CHECK((it == j.cbegin()));
101 CHECK((it == j.cend()));
109 CHECK((it == j.cend()));
117 CHECK((it == j.cend()));
137 CHECK(*it == json(17));
146 CHECK(*it == json("bar"));
153 CHECK(*it == json(1));
170 CHECK(st
[all...]
H A Dunit-deserialization.cpp232 CHECK(json::accept(ss2));
233 CHECK(j == json({"foo", 1, 2, 3, false, {{"one", 1}}}));
236 CHECK(json::sax_parse(ss3, &l));
237 CHECK(l.events.size() == 11);
238 CHECK(l.events == std::vector<std::string>(
251 CHECK(json::accept(s));
252 CHECK(j == json({"foo", 1, 2, 3, false, {{"one", 1}}}));
255 CHECK(json::sax_parse(s, &l));
256 CHECK(l.events.size() == 11);
257 CHECK(
[all...]
/third_party/skia/tests/graphite/
H A DRectTest.cpp13 #define CHECK(A) REPORTER_ASSERT(reporter, A) macro
18 CHECK(rect == rect); in DEF_GRAPHITE_TEST()
19 CHECK(rect == skRect); // promotes 'skRect' to a Rect for == in DEF_GRAPHITE_TEST()
20 CHECK(rect.asSkRect() == skRect); // converts 'rect' to SkRect for == in DEF_GRAPHITE_TEST()
29 CHECK(rect2 == rect2); in DEF_GRAPHITE_TEST()
30 CHECK(rect2 == Rect(float2(l,t), float2(r,b))); in DEF_GRAPHITE_TEST()
31 CHECK(rect2 == Rect(skRect2)); in DEF_GRAPHITE_TEST()
32 CHECK(rect2.asSkRect() == skRect2); in DEF_GRAPHITE_TEST()
34 CHECK((rect2 == rect) == (rect == rect2)); in DEF_GRAPHITE_TEST()
35 CHECK((rect in DEF_GRAPHITE_TEST()
[all...]
/third_party/icu/vendor/double-conversion/upstream/test/cctest/
H A Dtest-ieee.cc71 CHECK(DOUBLE_CONVERSION_UINT64_2PART_C(0x00134567, 89ABCDEF) == diy_fp.f()); // NOLINT in TEST()
77 CHECK(1 == diy_fp.f()); // NOLINT in TEST()
82 CHECK(DOUBLE_CONVERSION_UINT64_2PART_C(0x001fffff, ffffffff) == diy_fp.f()); // NOLINT in TEST()
110 CHECK((DOUBLE_CONVERSION_UINT64_2PART_C(0x00134567, 89ABCDEF) << 11) == in TEST()
117 CHECK(DOUBLE_CONVERSION_UINT64_2PART_C(0x80000000, 00000000) == diy_fp.f()); // NOLINT in TEST()
122 CHECK((DOUBLE_CONVERSION_UINT64_2PART_C(0x001fffff, ffffffff) << 11) == in TEST()
129 CHECK(Double(min_double64).IsDenormal()); in TEST()
131 CHECK(Double(bits).IsDenormal()); in TEST()
133 CHECK(!Double(bits).IsDenormal()); in TEST()
139 CHECK(Singl in TEST()
[all...]
H A Dtest-fixed-dtoa.cc47 CHECK(FastFixedDtoa(1.0, 1, buffer, &length, &point)); in TEST()
51 CHECK(FastFixedDtoa(1.0, 15, buffer, &length, &point)); in TEST()
55 CHECK(FastFixedDtoa(1.0, 0, buffer, &length, &point)); in TEST()
59 CHECK(FastFixedDtoa(0xFFFFFFFF, 5, buffer, &length, &point)); in TEST()
63 CHECK(FastFixedDtoa(4294967296.0, 5, buffer, &length, &point)); in TEST()
67 CHECK(FastFixedDtoa(1e21, 5, buffer, &length, &point)); in TEST()
72 CHECK(FastFixedDtoa(999999999999999868928.00, 2, buffer, &length, &point)); in TEST()
76 CHECK(FastFixedDtoa(6.9999999999999989514240000e+21, 5, buffer, in TEST()
81 CHECK(FastFixedDtoa(1.5, 5, buffer, &length, &point)); in TEST()
85 CHECK(FastFixedDto in TEST()
[all...]
H A Dtest-conversions.cc48 CHECK(dc.ToShortest(0.0, &builder)); in TEST()
52 CHECK(dc.ToShortest(12345.0, &builder)); in TEST()
56 CHECK(dc.ToShortest(12345e23, &builder)); in TEST()
60 CHECK(dc.ToShortest(1e21, &builder)); in TEST()
64 CHECK(dc.ToShortest(1e-23, &builder)); in TEST()
68 CHECK(dc.ToShortest(1e20, &builder)); in TEST()
72 CHECK(dc.ToShortest(111111111111111111111.0, &builder)); in TEST()
76 CHECK(dc.ToShortest(1111111111111111111111.0, &builder)); in TEST()
80 CHECK(dc.ToShortest(11111111111111111111111.0, &builder)); in TEST()
84 CHECK(d in TEST()
[all...]

Completed in 16 milliseconds

12345678910>>...30