/external/rust/crates/ryu/tests/ |
D | d2s_test.rs | 48 check!(0.3); in test_ryu() 49 check!(1234000000000000.0); in test_ryu() 50 check!(1.234e16); in test_ryu() 51 check!(2.71828); in test_ryu() 52 check!(1.1e128); in test_ryu() 53 check!(1.1e-64); in test_ryu() 54 check!(2.718281828459045); in test_ryu() 55 check!(5e-324); in test_ryu() 56 check!(1.7976931348623157e308); in test_ryu() 81 check!(0.0); in test_basic() [all …]
|
D | f2s_test.rs | 40 check!(0.3); in test_ryu() 41 check!(1234000000000.0); in test_ryu() 42 check!(1.234e13); in test_ryu() 43 check!(2.71828); in test_ryu() 44 check!(1.1e32); in test_ryu() 45 check!(1.1e-32); in test_ryu() 46 check!(2.7182817); in test_ryu() 47 check!(1e-45); in test_ryu() 48 check!(3.4028235e38); in test_ryu() 49 check!(-0.001234); in test_ryu() [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/utilities/format/format.functions/ |
D | format_tests.h | 82 void format_test_string(const W& world, const U& universe, TestFunction check, ExceptionTest check_… in format_test_string() argument 86 check(SV("hello world"), SV("hello {}"), world, universe); in format_test_string() 87 check(SV("hello world and universe"), SV("hello {} and {}"), world, universe); in format_test_string() 88 check(SV("hello world"), SV("hello {0}"), world, universe); in format_test_string() 89 check(SV("hello universe"), SV("hello {1}"), world, universe); in format_test_string() 90 check(SV("hello universe and world"), SV("hello {1} and {0}"), world, universe); in format_test_string() 92 check(SV("hello world"), SV("hello {:_>}"), world); in format_test_string() 93 check(SV("hello world "), SV("hello {:8}"), world); in format_test_string() 94 check(SV("hello world"), SV("hello {:>8}"), world); in format_test_string() 95 check(SV("hello ___world"), SV("hello {:_>8}"), world); in format_test_string() [all …]
|
D | unicode.pass.cpp | 49 void check(std::basic_string_view<CharT> expected, test_format_string<CharT, Args...> fmt, Args&&..… in check() function 63 check(SV("* *"), SV("{:*^3}"), SV(" ")); in test_single_code_point_fill() 64 check(SV("*~*"), SV("{:*^3}"), SV("~")); in test_single_code_point_fill() 67 check(SV("*\u00a1*"), SV("{:*^3}"), SV("\u00a1")); // INVERTED EXCLAMATION MARK in test_single_code_point_fill() 68 check(SV("*\u07ff*"), SV("{:*^3}"), SV("\u07ff")); // NKO TAMAN SIGN in test_single_code_point_fill() 71 check(SV("*\u0800*"), SV("{:*^3}"), SV("\u0800")); // SAMARITAN LETTER ALAF in test_single_code_point_fill() 72 check(SV("*\ufffd*"), SV("{:*^3}"), SV("\ufffd")); // REPLACEMENT CHARACTER in test_single_code_point_fill() 75 check(SV("*\u1100*"), SV("{:*^4}"), SV("\u1100")); // HANGUL CHOSEONG KIYEOK in test_single_code_point_fill() 76 check(SV("*\u115f*"), SV("{:*^4}"), SV("\u115f")); // HANGUL CHOSEONG FILLER in test_single_code_point_fill() 78 check(SV("*\u2329*"), SV("{:*^4}"), SV("\u2329")); // LEFT-POINTING ANGLE BRACKET in test_single_code_point_fill() [all …]
|
/external/rust/crates/litrs/src/char/ |
D | tests.rs | 6 macro_rules! check { macro 26 check!('a'); in alphanumeric() 27 check!('b'); in alphanumeric() 28 check!('y'); in alphanumeric() 29 check!('z'); in alphanumeric() 30 check!('A'); in alphanumeric() 31 check!('B'); in alphanumeric() 32 check!('Y'); in alphanumeric() 33 check!('Z'); in alphanumeric() 35 check!('0'); in alphanumeric() [all …]
|
/external/rust/crates/litrs/src/byte/ |
D | tests.rs | 5 macro_rules! check { macro 25 check!(b'a'); in alphanumeric() 26 check!(b'b'); in alphanumeric() 27 check!(b'y'); in alphanumeric() 28 check!(b'z'); in alphanumeric() 29 check!(b'A'); in alphanumeric() 30 check!(b'B'); in alphanumeric() 31 check!(b'Y'); in alphanumeric() 32 check!(b'Z'); in alphanumeric() 34 check!(b'0'); in alphanumeric() [all …]
|
/external/rust/crates/rayon/tests/ |
D | debug.rs | 4 fn check<I>(iter: I) in check() function 15 check(heap.par_iter()); in debug_binary_heap() 16 check(heap.par_drain()); in debug_binary_heap() 17 check(heap.into_par_iter()); in debug_binary_heap() 24 check(map.par_iter()); in debug_btree_map() 25 check(map.par_iter_mut()); in debug_btree_map() 26 check(map.into_par_iter()); in debug_btree_map() 33 check(set.par_iter()); in debug_btree_set() 34 check(set.into_par_iter()); in debug_btree_set() 41 check(map.par_iter()); in debug_hash_map() [all …]
|
D | clones.rs | 3 fn check<I>(iter: I) in check() function 24 check(heap.par_iter()); in clone_binary_heap() 25 check(heap.into_par_iter()); in clone_binary_heap() 32 check(map.par_iter()); in clone_btree_map() 39 check(set.par_iter()); in clone_btree_set() 46 check(map.par_iter()); in clone_hash_map() 53 check(set.par_iter()); in clone_hash_set() 60 check(list.par_iter()); in clone_linked_list() 61 check(list.into_par_iter()); in clone_linked_list() 68 check(deque.par_iter()); in clone_vec_deque() [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/utilities/format/format.range/format.range.fmtset/ |
D | format.functions.tests.h | 28 void test_char_default(TestFunction check, ExceptionTest check_exception) { in test_char_default() argument 32 check(SV("{'a', 'b', 'c'}"), SV("{}"), input); in test_char_default() 34 check(SV("{a, b, c}"), SV("{::}"), input); in test_char_default() 36 check(SV("{'a', 'b', 'c'}"), SV("{::?}"), input); in test_char_default() 41 check(SV("{'a', 'b', 'c'} "), SV("{:20}"), input); in test_char_default() 42 check(SV("{'a', 'b', 'c'}*****"), SV("{:*<20}"), input); in test_char_default() 43 check(SV("__{'a', 'b', 'c'}___"), SV("{:_^20}"), input); in test_char_default() 44 check(SV("#####{'a', 'b', 'c'}"), SV("{:#>20}"), input); in test_char_default() 46 check(SV("{'a', 'b', 'c'} "), SV("{:{}}"), input, 20); in test_char_default() 47 check(SV("{'a', 'b', 'c'}*****"), SV("{:*<{}}"), input, 20); in test_char_default() [all …]
|
/external/gfxstream-protocols/registry/vulkan/scripts/ |
D | test_check_spec_links.py | 37 def check(self, string): member in CheckerWrapper 90 assert(ckr.check('with %s by' % PROTO).numDiagnostics() == 1) 94 assert(not ckr.check('<<%s' % PROTO).messages) 96 assert(not ckr.check('%s>>' % PROTO).messages) 97 assert(not ckr.check( 104 assert(ckr.check('flink:abcd').numDiagnostics() == 1) 111 assert(ckr.check('*flink:abcd*').numErrors() == 1) 117 assert(ckr.check('basetype:uint32_t').numErrors() == 1) 120 assert(ckr.check('code:uint32_t').numErrors() == 0) 148 assert(ckr.check('etext:API_ENUM_').numDiagnostics() == 0) [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/utilities/format/format.range/format.range.formatter/ |
D | format.functions.tests.h | 34 void test_char_default(TestFunction check, ExceptionTest check_exception, auto&& input) { in test_char_default() argument 36 check(SV("['H', 'e', 'l', 'l', 'o']"), SV("{}"), input); in test_char_default() 39 check(SV("[H, e, l, l, o]"), SV("{::}"), input); in test_char_default() 41 check(SV("['H', 'e', 'l', 'l', 'o']"), SV("{::?}"), input); in test_char_default() 46 check(SV("['H', 'e', 'l', 'l', 'o'] "), SV("{:30}"), input); in test_char_default() 47 check(SV("['H', 'e', 'l', 'l', 'o']*****"), SV("{:*<30}"), input); in test_char_default() 48 check(SV("__['H', 'e', 'l', 'l', 'o']___"), SV("{:_^30}"), input); in test_char_default() 49 check(SV("#####['H', 'e', 'l', 'l', 'o']"), SV("{:#>30}"), input); in test_char_default() 51 check(SV("['H', 'e', 'l', 'l', 'o'] "), SV("{:{}}"), input, 30); in test_char_default() 52 check(SV("['H', 'e', 'l', 'l', 'o']*****"), SV("{:*<{}}"), input, 30); in test_char_default() [all …]
|
/external/kotlinx.atomicfu/atomicfu/src/commonTest/kotlin/kotlinx/atomicfu/test/ |
D | TopLevelTest.kt | 31 check(a.value == 0) in <lambda>() 32 check(a.getAndSet(3) == 0) in <lambda>() 33 check(a.compareAndSet(3, 8)) in <lambda>() 35 check(a.value == 5) in <lambda>() 37 check(a.value == 1) in <lambda>() 38 check(a.getAndSet(2) == 1) in <lambda>() 39 check(a.value == 2) in <lambda>() 40 check(a.getAndIncrement() == 2) in <lambda>() 41 check(a.value == 3) in <lambda>() 42 check(a.getAndDecrement() == 3) in <lambda>() [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/containers/container.adaptors/container.adaptors.format/ |
D | format.functions.tests.h | 30 void test_char_default(TestFunction check, ExceptionTest check_exception, auto&& input) { in test_char_default() argument 32 check(SV("['H', 'e', 'l', 'l', 'o']"), SV("{}"), input); in test_char_default() 35 check(SV("[H, e, l, l, o]"), SV("{::}"), input); in test_char_default() 37 check(SV("['H', 'e', 'l', 'l', 'o']"), SV("{::?}"), input); in test_char_default() 42 check(SV("['H', 'e', 'l', 'l', 'o'] "), SV("{:30}"), input); in test_char_default() 43 check(SV("['H', 'e', 'l', 'l', 'o']*****"), SV("{:*<30}"), input); in test_char_default() 44 check(SV("__['H', 'e', 'l', 'l', 'o']___"), SV("{:_^30}"), input); in test_char_default() 45 check(SV("#####['H', 'e', 'l', 'l', 'o']"), SV("{:#>30}"), input); in test_char_default() 47 check(SV("['H', 'e', 'l', 'l', 'o'] "), SV("{:{}}"), input, 30); in test_char_default() 48 check(SV("['H', 'e', 'l', 'l', 'o']*****"), SV("{:*<{}}"), input, 30); in test_char_default() [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/time/time.syn/ |
D | formatter.duration.pass.cpp | 48 check(SV("1as"), SV("{}"), std::chrono::duration<int, std::atto>(1)); in test_no_chrono_specs() 49 check(SV("1fs"), SV("{}"), std::chrono::duration<int, std::femto>(1)); in test_no_chrono_specs() 50 check(SV("1ps"), SV("{}"), std::chrono::duration<int, std::pico>(1)); in test_no_chrono_specs() 51 check(SV("1ns"), SV("{}"), 1ns); in test_no_chrono_specs() 53 check(SV("1\u00b5s"), SV("{}"), 1us); in test_no_chrono_specs() 55 check(SV("1us"), SV("{}"), 1us); in test_no_chrono_specs() 57 check(SV("1ms"), SV("{}"), 1ms); in test_no_chrono_specs() 58 check(SV("1cs"), SV("{}"), std::chrono::duration<int, std::centi>(1)); in test_no_chrono_specs() 59 check(SV("1ds"), SV("{}"), std::chrono::duration<int, std::deci>(1)); in test_no_chrono_specs() 61 check(SV("1s"), SV("{}"), 1s); in test_no_chrono_specs() [all …]
|
D | formatter.month.pass.cpp | 45 check(SV("Jan"), SV("{}"), std::chrono::month{1}); in test_no_chrono_specs() 46 check(SV("*Jan*"), SV("{:*^5}"), std::chrono::month{1}); in test_no_chrono_specs() 47 check(SV("*Jan"), SV("{:*>4}"), std::chrono::month{1}); in test_no_chrono_specs() 50 check(SV("0 is not a valid month"), SV("{}"), std::chrono::month{0}); in test_no_chrono_specs() 51 check(SV("*0 is not a valid month*"), SV("{:*^24}"), std::chrono::month{0}); in test_no_chrono_specs() 76 check(SV("%b='Jan'\t%B='January'\t%h='Jan'\t%m='01'\t%Om='01'\n"), fmt, std::chrono::January); in test_valid_values() 77 check(SV("%b='Feb'\t%B='February'\t%h='Feb'\t%m='02'\t%Om='02'\n"), fmt, std::chrono::February); in test_valid_values() 78 check(SV("%b='Mar'\t%B='March'\t%h='Mar'\t%m='03'\t%Om='03'\n"), fmt, std::chrono::March); in test_valid_values() 79 check(SV("%b='Apr'\t%B='April'\t%h='Apr'\t%m='04'\t%Om='04'\n"), fmt, std::chrono::April); in test_valid_values() 80 check(SV("%b='May'\t%B='May'\t%h='May'\t%m='05'\t%Om='05'\n"), fmt, std::chrono::May); in test_valid_values() [all …]
|
/external/rust/crates/litrs/src/string/ |
D | tests.rs | 5 macro_rules! check { macro 28 check!("", false, None); in simple() 29 check!("a", false, None); in simple() 30 check!("peter", false, None); in simple() 31 check!("Sei gegrüßt, Bärthelt!", false, None); in simple() 32 check!("أنا لا أتحدث العربية", false, None); in simple() 33 check!("お前はもう死んでいる", false, None); in simple() 34 check!("Пушки - интересные музыкальные инструменты", false, None); in simple() 35 check!("lit af", false, None); in simple() 63 check!("a\nb", true, None); in simple_escapes() [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/utilities/format/format.range/format.range.fmtmap/ |
D | format.functions.tests.h | 26 void test_char(TestFunction check, ExceptionTest check_exception) { in test_char() argument 29 check(SV("{'a': 'A', 'b': 'B', 'c': 'C'}"), SV("{}"), input); in test_char() 34 check(SV("{'a': 'A', 'b': 'B', 'c': 'C'} "), SV("{:35}"), input); in test_char() 35 check(SV("{'a': 'A', 'b': 'B', 'c': 'C'}*****"), SV("{:*<35}"), input); in test_char() 36 check(SV("__{'a': 'A', 'b': 'B', 'c': 'C'}___"), SV("{:_^35}"), input); in test_char() 37 check(SV("#####{'a': 'A', 'b': 'B', 'c': 'C'}"), SV("{:#>35}"), input); in test_char() 39 check(SV("{'a': 'A', 'b': 'B', 'c': 'C'} "), SV("{:{}}"), input, 35); in test_char() 40 check(SV("{'a': 'A', 'b': 'B', 'c': 'C'}*****"), SV("{:*<{}}"), input, 35); in test_char() 41 check(SV("__{'a': 'A', 'b': 'B', 'c': 'C'}___"), SV("{:_^{}}"), input, 35); in test_char() 42 check(SV("#####{'a': 'A', 'b': 'B', 'c': 'C'}"), SV("{:#>{}}"), input, 35); in test_char() [all …]
|
/external/ktfmt/core/src/test/java/com/facebook/ktfmt/kdoc/ |
D | UtilitiesTest.kt | 28 fun check(newWithCaret: String, oldWithCaret: String) { in testFindSamePosition() method 42 check("|/** Test\n Different Middle End */", "|/** Test2 End */") in testFindSamePosition() 43 check("/|** Test\n Different Middle End */", "/|** Test2 End */") in testFindSamePosition() 44 check("/*|* Test\n Different Middle End */", "/*|* Test2 End */") in testFindSamePosition() 45 check("/**| Test\n Different Middle End */", "/**| Test2 End */") in testFindSamePosition() 46 check("/** |Test\n Different Middle End */", "/** |Test2 End */") in testFindSamePosition() 47 check("/** T|est\n Different Middle End */", "/** T|est2 End */") in testFindSamePosition() 48 check("/** Te|st\n Different Middle End */", "/** Te|st2 End */") in testFindSamePosition() 49 check("/** Tes|t\n Different Middle End */", "/** Tes|t2 End */") in testFindSamePosition() 50 check("/** Test|\n Different Middle End */", "/** Test|2 End */") in testFindSamePosition() [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/utilities/format/format.tuple/ |
D | format.functions.tests.h | 31 void test_tuple_or_pair_int_int(TestFunction check, ExceptionTest check_exception, TupleOrPair&& in… 32 check(SV("(42, 99)"), SV("{}"), input); 35 check(SV("(42, 99) "), SV("{:13}"), input); 36 check(SV("(42, 99)*****"), SV("{:*<13}"), input); 37 check(SV("__(42, 99)___"), SV("{:_^13}"), input); 38 check(SV("#####(42, 99)"), SV("{:#>13}"), input); 40 check(SV("(42, 99) "), SV("{:{}}"), input, 13); 41 check(SV("(42, 99)*****"), SV("{:*<{}}"), input, 13); 42 check(SV("__(42, 99)___"), SV("{:_^{}}"), input, 13); 43 check(SV("#####(42, 99)"), SV("{:#>{}}"), input, 13); [all …]
|
/external/rust/crates/chrono/src/format/ |
D | parse.rs | 514 macro_rules! check { in test_parse() macro 526 check!("", []; ); in test_parse() 527 check!(" ", []; TOO_LONG); in test_parse() 528 check!("a", []; TOO_LONG); in test_parse() 531 check!("", [sp!("")]; ); in test_parse() 532 check!(" ", [sp!("")]; ); in test_parse() 533 check!("\t", [sp!("")]; ); in test_parse() 534 check!(" \n\r \n", [sp!("")]; ); in test_parse() 535 check!("a", [sp!("")]; TOO_LONG); in test_parse() 538 check!("", [lit!("a")]; TOO_SHORT); in test_parse() [all …]
|
/external/cronet/base/test/ |
D | gmock_callback_support_unittest.cc | 35 MockFunction<void(const TestCallback&)> check; in TEST() local 36 EXPECT_CALL(check, Call(IsNullCallback())); in TEST() 37 check.Call(TestCallback()); in TEST() 41 MockFunction<void(const TestCallback&)> check; in TEST() local 42 EXPECT_CALL(check, Call(IsNotNullCallback())); in TEST() 43 check.Call(base::BindRepeating(&SetBool)); in TEST() 59 MockFunction<void(const base::RepeatingClosure&)> check; in TEST() local 61 EXPECT_CALL(check, Call(IsNotNullCallback())).WillOnce(RunClosure<0>()); in TEST() 62 check.Call(base::BindRepeating(&SetBool, true, &dst)); in TEST() 68 MockFunction<void(base::RepeatingClosure&)> check; in TEST() local [all …]
|
/external/python/cpython3/Lib/lib2to3/tests/ |
D | test_fixers.py | 35 def check(self, before, after, ignore_warnings=False): member in FixerTestCase 79 self.check(b, a) 87 self.check(b, a) 95 self.check(b, a) 103 self.check(b, a) 108 self.check(b, a) 113 self.check(b, a) 118 self.check(b, a) 123 self.check(b, a) 128 self.check(b, a) [all …]
|
/external/jsmn/test/ |
D | tests.c | 10 check(parse("{}", 1, 1, JSMN_OBJECT, 0, 2, 0)); in test_empty() 11 check(parse("[]", 1, 1, JSMN_ARRAY, 0, 2, 0)); in test_empty() 12 check(parse("[{},{}]", 3, 3, JSMN_ARRAY, 0, 7, 2, JSMN_OBJECT, 1, 3, 0, in test_empty() 18 check(parse("{\"a\":0}", 3, 3, JSMN_OBJECT, 0, 7, 1, JSMN_STRING, "a", 1, in test_object() 20 check(parse("{\"a\":[]}", 3, 3, JSMN_OBJECT, 0, 8, 1, JSMN_STRING, "a", 1, in test_object() 22 check(parse("{\"a\":{},\"b\":{}}", 5, 5, JSMN_OBJECT, -1, -1, 2, JSMN_STRING, in test_object() 25 check(parse("{\n \"Day\": 26,\n \"Month\": 9,\n \"Year\": 12\n }", 7, 7, in test_object() 29 check(parse("{\"a\": 0, \"b\": \"c\"}", 5, 5, JSMN_OBJECT, -1, -1, 2, in test_object() 34 check(parse("{\"a\"\n0}", JSMN_ERROR_INVAL, 3)); in test_object() 35 check(parse("{\"a\", 0}", JSMN_ERROR_INVAL, 3)); in test_object() [all …]
|
/external/rust/crates/litrs/src/integer/ |
D | tests.rs | 11 fn check<T: FromIntegerLiteral + PartialEq + Debug + Display>( in check() function 50 check("0", 0u128, Decimal, "0", None); in parse_decimal() 51 check("1", 1u8, Decimal, "1", None); in parse_decimal() 52 check("8", 8u16, Decimal, "8", None); in parse_decimal() 53 check("9", 9u32, Decimal, "9", None); in parse_decimal() 54 check("10", 10u64, Decimal, "10", None); in parse_decimal() 55 check("11", 11i8, Decimal, "11", None); in parse_decimal() 56 check("123456789", 123456789i128, Decimal, "123456789", None); in parse_decimal() 58 check("05", 5i16, Decimal, "05", None); in parse_decimal() 59 check("00005", 5i32, Decimal, "00005", None); in parse_decimal() [all …]
|
/external/python/cpython2/Lib/lib2to3/tests/ |
D | test_fixers.py | 36 def check(self, before, after, ignore_warnings=False): member in FixerTestCase 80 self.check(b, a) 88 self.check(b, a) 96 self.check(b, a) 104 self.check(b, a) 109 self.check(b, a) 114 self.check(b, a) 119 self.check(b, a) 124 self.check(b, a) 129 self.check(b, a) [all …]
|