| /third_party/json/test/src/ |
| D | unit-iterators1.cpp | 44 CHECK(it.m_object == nullptr); 47 CHECK(cit.m_object == nullptr); 58 CHECK(it != j.end()); 59 CHECK(*it == j); 62 CHECK(it != j.begin()); 63 CHECK(it == j.end()); 66 CHECK(it == j.begin()); 67 CHECK(it != j.end()); 68 CHECK(*it == j); 71 CHECK(it != j.begin()); [all …]
|
| D | unit-inspection.cpp | 45 CHECK(not j.is_null()); 46 CHECK(not j.is_boolean()); 47 CHECK(not j.is_number()); 48 CHECK(not j.is_number_integer()); 49 CHECK(not j.is_number_unsigned()); 50 CHECK(not j.is_number_float()); 51 CHECK(j.is_object()); 52 CHECK(not j.is_array()); 53 CHECK(not j.is_string()); 54 CHECK(not j.is_discarded()); [all …]
|
| D | unit-pointer_access.cpp | 58 // check if pointers are returned correctly 60 CHECK(p1 == value.get_ptr<test_type*>()); 61 CHECK(*p1 == value.get<test_type>()); 64 CHECK(p1 == value.get_ptr<const test_type*>()); 65 CHECK(*p2 == value.get<test_type>()); 68 CHECK(p1 == value.get_ptr<const test_type* const>()); 69 CHECK(*p3 == value.get<test_type>()); 71 // check if null pointers are returned correctly 72 CHECK(value.get_ptr<json::object_t*>() != nullptr); 73 CHECK(value.get_ptr<json::array_t*>() == nullptr); [all …]
|
| D | unit-items.cpp | 57 CHECK(i.key() == "A"); 58 CHECK(i.value() == json(1)); 64 CHECK(i.key() == "B"); 65 CHECK(i.value() == json(2)); 76 CHECK(counter == 3); 90 CHECK(i.key() == "A"); 91 CHECK(i.value() == json(1)); 95 CHECK(i.value() == json(11)); 101 CHECK(i.key() == "B"); 102 CHECK(i.value() == json(2)); [all …]
|
| D | unit-capacity.cpp | 46 CHECK(j.empty() == false); 47 CHECK(j_const.empty() == false); 52 CHECK(j.empty() == (j.begin() == j.end())); 53 CHECK(j_const.empty() == (j_const.begin() == j_const.end())); 64 CHECK(j.empty() == false); 65 CHECK(j_const.empty() == false); 70 CHECK(j.empty() == (j.begin() == j.end())); 71 CHECK(j_const.empty() == (j_const.begin() == j_const.end())); 84 CHECK(j.empty() == true); 85 CHECK(j_const.empty() == true); [all …]
|
| D | unit-iterators2.cpp | 58 CHECK(it1 == it1); 59 CHECK(not (it1 == it2)); 60 CHECK(not (it1 == it3)); 61 CHECK(not (it2 == it3)); 62 CHECK(it1_c == it1_c); 63 CHECK(not (it1_c == it2_c)); 64 CHECK(not (it1_c == it3_c)); 65 CHECK(not (it2_c == it3_c)); 70 // check definition 71 CHECK( (it1 != it1) == not(it1 == it1) ); [all …]
|
| /third_party/boost/libs/date_time/test/ |
| D | testgeneric_period.cpp | 53 /*** check all functions - normal periods ***/ in main() 56 check("Different constructors", p1 == a_period(1, 10)); in main() 57 check("First", p1.begin() == 1); in main() 58 check("Last", p1.last() == 9); in main() 59 check("End", p1.end() == 10); in main() 60 check("Length", p1.length() == 9); in main() 61 check("is_null (not)", !p1.is_null()); in main() 64 check("First", p2.begin() == 5); in main() 65 check("Last", p2.last() == 29); in main() 66 check("End", p2.end() == 30); in main() [all …]
|
| D | testint_adapter.cpp | 35 check("streaming -infinity", ss.str() == s); in print() 41 check("streaming +infinity", ss.str() == s); in print() 47 check("streaming nan", ss.str() == s); in print() 53 check("streaming digits", ss.str() == s); in print() 63 check("is infinity", i.is_infinity()); in test_int() 64 check("is special_value (neg_inf)", i.is_special()); in test_int() 65 check("as_special convert", boost::date_time::neg_infin == i.as_special() ); in test_int() 66 check("as_special convert", boost::date_time::neg_infin == int_type::to_special(i.as_number()) ); in test_int() 69 check("is infinity", i.is_infinity()); in test_int() 70 check("as_special convert", boost::date_time::pos_infin == i.as_special() ); in test_int() [all …]
|
| D | testwrapping_int.cpp | 24 check("construction/conversion", wi == 3599); in main() 25 check("add with wrap", wi.add(1) == 1); in main() 26 check("added value ok", wi == 0); in main() 27 check("add with 2 wraps", wi.add(7201) == 2); in main() 28 check("added value ok", wi == 1); in main() 29 check("add with 3 wraps", wi.add(10800) == 3); in main() 30 check("added value ok", wi == 1); in main() 31 check("subtract no wrap", wi.subtract(1) == 0); in main() 32 check("subtract val ok", wi == 0); in main() 33 check("subtract no wrap", wi.subtract(3601) == 2); in main() [all …]
|
| D | testgregorian_calendar.cpp | 24 check("Day of week 2000-09-24 == 0 (Sun)", in main() 26 check("Day of week 2000-09-25 == 1 (Mon)", in main() 28 check("Day of week 2000-09-26 == 2 (Tue)", in main() 30 check("Day of week 2000-09-27 == 3 (Wed)", in main() 32 check("Day of week 2000-09-28 == 4 (Thu)", in main() 34 check("Day of week 2000-09-29 == 5 (Fri)", in main() 36 check("Day of week 2000-09-30 == 6 (Sat)", in main() 39 check("Day of week 1953-08-02 == 0 (Sun)", in main() 41 check("Day of week 1953-08-03 == 1 (Mon)", in main() 43 check("Day of week 1953-08-04 == 2 (Tue)", in main() [all …]
|
| /third_party/node/test/parallel/ |
| D | test-fs-null-bytes.js | 28 function check(async, sync) { function 55 check(fs.access, fs.accessSync, 'foo\u0000bar'); 56 check(fs.access, fs.accessSync, 'foo\u0000bar', fs.F_OK); 57 check(fs.appendFile, fs.appendFileSync, 'foo\u0000bar', 'abc'); 58 check(fs.chmod, fs.chmodSync, 'foo\u0000bar', '0644'); 59 check(fs.chown, fs.chownSync, 'foo\u0000bar', 12, 34); 60 check(fs.copyFile, fs.copyFileSync, 'foo\u0000bar', 'abc'); 61 check(fs.copyFile, fs.copyFileSync, 'abc', 'foo\u0000bar'); 62 check(fs.lchown, fs.lchownSync, 'foo\u0000bar', 12, 34); 63 check(fs.link, fs.linkSync, 'foo\u0000bar', 'foobar'); [all …]
|
| /third_party/boost/libs/qvm/test/ |
| D | deduce_scalar_test.cpp | 19 check struct 28 check<signed char,signed char,signed char>(); in main() argument 29 check<signed char,signed short,signed short>(); in main() 30 check<signed char,signed int,signed int>(); in main() 31 check<signed char,signed long,signed long>(); in main() 32 check<signed char,unsigned char,unsigned char>(); in main() 33 check<signed char,unsigned short,unsigned short>(); in main() 34 check<signed char,unsigned int,unsigned int>(); in main() 35 check<signed char,unsigned long,unsigned long>(); in main() 36 check<signed char,float,float>(); in main() [all …]
|
| /third_party/boost/libs/test/test/baseline-outputs/ |
| D | test_tools-test.pattern | 2 info: check sizeof(unsigned char) == sizeof(char) has passed 3 error: in "test_BOOST_CHECK": check false has failed 4 error: in "test_BOOST_CHECK": check 1==2 has failed 5 error: in "test_BOOST_CHECK": check i==1 has failed 6 info: check i==2 has passed 8 fatal error: in "test_BOOST_REQUIRE": critical check false has failed 9 fatal error: in "test_BOOST_REQUIRE": critical check j > 5 has failed 10 info: check j < 5 has passed 12 info: check 'object size 33 is too small' has passed 15 info: check 'Could it fail?' has passed [all …]
|
| /third_party/boost/libs/date_time/test/gregorian/ |
| D | testgreg_durations.cpp | 17 check("Optional gregorian types not selected - no tests run", true); in main() 26 check("months & months addable", months(8) == m1 + m2); in main() 28 check("months & months addable", months(8) == m1); in main() 29 check("months & months subtractable", months(-5) == m2 - m1); in main() 31 check("months & months subtractable", months(-5) == m2); in main() 36 check("add neg months (year wrap under)", in main() 38 check("add neg months (no year wrap under)", in main() 40 check("add neg months (year wrap under)", in main() 42 check("add neg months (year wrap under)", in main() 44 check("add neg months (year wrap under)", in main() [all …]
|
| D | testgenerators.cpp | 22 check("Partial date to_string()", pd1.to_string() == std::string("0")); in main() 23 check("Partial date getdate", date(2000,1,1) == d); in main() 25 check("Partial date getdate", date(2001,1,1) == d); in main() 27 check("Partial date to_string()", pd2.to_string() == std::string("31")); in main() 28 check("Partial date operator==", pd1 == pd1); in main() 29 check("Partial date operator==", !(pd1 == pd2)); in main() 30 check("Partial date operator==", !(pd2 == pd1)); in main() 31 check("Partial date operator<", !(pd1 < pd1)); in main() 32 check("Partial date operator<", pd1 < pd2); in main() 33 check("Partial date operator<", !(pd2 < pd1)); in main() [all …]
|
| D | testperiod.cpp | 17 check("assignment", d3 == d2); in main() 20 check("construction and ==", p1 == p2); in main() 21 check("begin", p1.begin() == d1); in main() 22 check("last", p1.last() == d2-date_duration(1) ); in main() 23 check("end", p1.end() == d2); in main() 24 check("length", p2.length() == date_duration(3)); in main() 25 check("contains begin", p1.contains(d1)); in main() 26 check("contains last", !p1.contains(d2)); in main() 28 check("operator== not equal case", !(p1 == p3)); in main() 29 check("less than order", p1 < p3); in main() [all …]
|
| /third_party/boost/libs/date_time/test/posix_time/ |
| D | testdst_rules.cpp | 71 check("dst start", us_dst_local::local_dst_start_day(2002) == dst_start); in main() 72 check("dst end", us_dst_local::local_dst_end_day(2002) == dst_end); in main() 73 check("dst boundary", us_dst_local::is_dst_boundary_day(dst_start)); in main() 74 check("dst boundary", us_dst_local::is_dst_boundary_day(dst_end)); in main() 75 check("check if time is dst -- not", in main() 77 check("label on dst boundary invalid", in main() 79 check("label on dst boundary invalid", in main() 81 check("check if time is dst -- not", in main() 83 check("check if time is dst -- yes", in main() 86 check("check if time is dst -- not", in main() [all …]
|
| D | testlocal_adjustor.cpp | 33 check("check local calculation", td == hours(5)); in main() 36 check("check local calculation", t10_local == t10_check); in main() 37 check("check utc is dst", in main() 44 check("check local offset",us_eastern::local_to_utc_offset(t11) == hours(4)); in main() 49 check("check local calculation", t11_local == t11_check); in main() 51 check("check local offset-dst flag on", in main() 53 check("check local offset-dst flag override", in main() 57 //Check the start of dst boundary in main() 59 check("check local dst start boundary case", in main() 62 check("check utc dst start boundary case", in main() [all …]
|
| D | testduration.cpp | 28 check("default construction -- 0 ticks", td.ticks() == 0); in main() 29 // check("default construction -- 0 secs", td.seconds() == 0); in main() 30 // check("default construction -- 0 min", td.minutes() == 0); in main() 36 check("total up elements", td1 == td3); in main() 38 check("invert_sign",td3 == td1.invert_sign()); in main() 39 check("invert_sign",td1 == td3.invert_sign()); in main() 40 check("abs",td3 == td1.abs()); in main() 41 check("abs",td3 == td3.abs()); in main() 42 check("is_positive",td3.is_positive()); in main() 43 check("is_positive",!td1.is_positive()); in main() [all …]
|
| D | testtime.cpp | 28 check("Default constructor", def == ptime(not_a_date_time)); in special_values_tests() 33 check("constexpr not configured", true); in special_values_tests() 35 //check constexpr case in special_values_tests() 49 check("constexpr tests compiled", true); in special_values_tests() 57 check("from special value +infinity", to_simple_string(p_sv1) == s); in special_values_tests() 59 …check("Special value (pos infin) + date_duration = +infinity", to_iso_extended_string(result) == s… in special_values_tests() 60 check("is_special function - pos infin", result.is_special()); in special_values_tests() 62 …check("Special value (pos infin) - date_duration = +infinity", to_iso_extended_string(result) == s… in special_values_tests() 64 …check("Special value (pos infin) - date_duration (neg infin) = +infinity", to_iso_extended_string(… in special_values_tests() 67 check("from special value -infinity", to_iso_string(p_sv2) == s); in special_values_tests() [all …]
|
| /third_party/boost/tools/build/test/core-language/ |
| D | test.jam | 19 rule check-equal ( id : values * : expected * ) 43 rule check-order ( id : expected * ) 45 check-equal $(id) : $(order) : $(expected) ; 49 # Check variable expansion 71 check-equal var-product : $(v1)$(v2) : 14 15 16 24 25 26 34 35 36 ; 73 check-equal var-set-grist : $(v1:G=grist) : <grist>1 <grist>2 <grist>3 ; 74 check-equal var-set-grist-multi : $(v1:G=$(g)) : <g1>1 <g1>2 <g1>3 <g2>1 <g2>2 <g2>3 ; 76 check-equal var-lower : $(v4:L) : string/with/mixed/case ; 77 check-equal var-upper : $(v4:U) : STRING/WITH/MIXED/CASE ; 78 check-equal var-LU : $(v4:LU) : STRING/WITH/MIXED/CASE ; [all …]
|
| /third_party/boost/libs/beast/test/beast/http/ |
| D | status.cpp | 26 auto const check = [&](status s, int i, status_class sc) in testStatus() local 32 check(status::continue_ ,100, status_class::informational); in testStatus() 33 check(status::switching_protocols ,101, status_class::informational); in testStatus() 34 check(status::processing ,102, status_class::informational); in testStatus() 36 check(status::ok ,200, status_class::successful); in testStatus() 37 check(status::created ,201, status_class::successful); in testStatus() 38 check(status::accepted ,202, status_class::successful); in testStatus() 39 check(status::non_authoritative_information ,203, status_class::successful); in testStatus() 40 check(status::no_content ,204, status_class::successful); in testStatus() 41 check(status::reset_content ,205, status_class::successful); in testStatus() [all …]
|
| /third_party/python/Lib/test/ |
| D | test_html.py | 21 def check(text, expected): function 29 # check text with no character references 30 check('no character references', 'no character references') 31 # check & followed by invalid chars 32 check('&\n&\t& &&', '&\n&\t& &&') 33 # check & followed by numbers and letters 34 check('&0 &9 &a &0; &9; &a;', '&0 &9 &a &0; &9; &a;') 35 # check incomplete entities at the end of the string 37 check(x, x) 38 check(x+';', x+';') [all …]
|
| D | test_fnmatch.py | 22 check = self.check_match 23 check('abc', 'abc') 24 check('abc', '?*?') 25 check('abc', '???*') 26 check('abc', '*???') 27 check('abc', '???') 28 check('abc', '*') 29 check('abc', 'ab[cd]') 30 check('abc', 'ab[!de]') 31 check('abc', 'ab[de]', False) [all …]
|
| /third_party/boost/libs/date_time/test/local_time/ |
| D | testlocal_time.cpp | 62 check("Zone abbreviation", az_time.zone()->std_zone_abbrev() == std::string("MST")); in main() 63 check("base offset", az_time.zone()->base_utc_offset() == hours(-7)); in main() 64 check("zone has dst", az_time.zone()->has_dst() == false); in main() 65 check("is_dst check", az_time.is_dst() == false); in main() 66 check("to_string: " + az_time.to_string(), in main() 74 check("is_dst check", az_time2.is_dst() == false); in main() 75 check("to_string: " + az_time2.to_string(), in main() 77 check("zone has dst", az_time2.zone()->has_dst() == false); in main() 78 check("base offset", az_time2.zone()->base_utc_offset() == hours(-7)); in main() 87 check("is special_value", sv_time.is_not_a_date_time()); in main() [all …]
|