/external/rust/android-crates-io/crates/googletest/tests/ |
D | tuple_matcher_test.rs | 7 // http://www.apache.org/licenses/LICENSE-2.0 20 fn empty_matcher_matches_empty_tuple() -> Result<()> { in empty_matcher_matches_empty_tuple() 25 fn empty_matcher_matches_empty_tuple_reference() -> Result<()> { in empty_matcher_matches_empty_tuple_reference() 31 fn singleton_matcher_matches_matching_singleton_tuple() -> Result<()> { in singleton_matcher_matches_matching_singleton_tuple() 32 verify_that!((123,), (eq(123),)) in singleton_matcher_matches_matching_singleton_tuple() 36 fn singleton_matcher_does_not_match_non_matching_singleton_tuple() -> Result<()> { in singleton_matcher_does_not_match_non_matching_singleton_tuple() 37 verify_that!((123,), not((eq(456),))) in singleton_matcher_does_not_match_non_matching_singleton_tuple() 41 fn pair_matcher_matches_matching_pair_tuple() -> Result<()> { in pair_matcher_matches_matching_pair_tuple() 42 verify_that!((123, 456), (eq(123), eq(456))) in pair_matcher_matches_matching_pair_tuple() 46 fn pair_matcher_matches_matching_pair_tuple_with_different_types() -> Result<()> { in pair_matcher_matches_matching_pair_tuple_with_different_types() [all …]
|
D | unordered_elements_are_matcher_test.rs | 7 // http://www.apache.org/licenses/LICENSE-2.0 20 fn unordered_elements_are_matches_empty_vector() -> Result<()> { in unordered_elements_are_matches_empty_vector() 26 fn unordered_elements_are_matches_empty_vector_with_trailing_comma() -> Result<()> { in unordered_elements_are_matches_empty_vector_with_trailing_comma() 32 fn unordered_elements_are_matches_vector() -> Result<()> { in unordered_elements_are_matches_vector() 34 verify_that!(value, unordered_elements_are![eq(&1), eq(&2), eq(&3)]) in unordered_elements_are_matches_vector() 38 fn unordered_elements_are_matches_iterator_returning_by_value() -> Result<()> { in unordered_elements_are_matches_iterator_returning_by_value() 44 fn next(&mut self) -> Option<Self::Item> { in unordered_elements_are_matches_iterator_returning_by_value() 48 self.0 -= 1; in unordered_elements_are_matches_iterator_returning_by_value() 54 verify_that!(Countdown(3), unordered_elements_are![eq(1), eq(2), eq(3)]) in unordered_elements_are_matches_iterator_returning_by_value() 58 fn unordered_elements_are_omitted() -> Result<()> { in unordered_elements_are_omitted() [all …]
|
/external/starlark-go/starlark/testdata/ |
D | float.star | 7 # - precision 8 # - limits 11 assert.eq(type(0.0), "float") 15 assert.true(-1.0) 17 assert.true(-1.0e-45) 25 assert.eq(type(1.234), "float") 26 assert.eq(type(1e10), "float") 27 assert.eq(type(1e+10), "float") 28 assert.eq(type(1e-10), "float") 29 assert.eq(type(1.234e10), "float") [all …]
|
D | int.star | 6 assert.eq(0 - 1, -1) 7 assert.eq(0 + 1, +1) 8 assert.eq(1 + 1, 2) 9 assert.eq(5 + 7, 12) 10 assert.eq(5 * 7, 35) 11 assert.eq(5 - 7, -2) 14 maxint64 = (1 << 63) - 1 15 minint64 = -1 << 63 16 maxint32 = (1 << 31) - 1 17 minint32 = -1 << 31 [all …]
|
D | string.star | 7 assert.eq(r"a\bc", "a\\bc") 15 assert.eq("a" + "b" + "c", "abc") 18 assert.eq("abc" * 0, "") 19 assert.eq("abc" * -1, "") 20 assert.eq("abc" * 1, "abc") 21 assert.eq("abc" * 5, "abcabcabcabcabc") 22 assert.eq(0 * "abc", "") 23 assert.eq(-1 * "abc", "") 24 assert.eq(1 * "abc", "abc") 25 assert.eq(5 * "abc", "abcabcabcabcabc") [all …]
|
D | list.star | 6 assert.eq([], []) 7 assert.eq([1], [1]) 8 assert.eq([1], [1]) 9 assert.eq([1, 2], [1, 2]) 18 assert.fails(lambda: abc[-4], "list index -4 out of range \\[-3:2]") 19 assert.eq(abc[-3], "a") 20 assert.eq(abc[-2], "b") 21 assert.eq(abc[-1], "c") 22 assert.eq(abc[0], "a") 23 assert.eq(abc[1], "b") [all …]
|
D | bytes.star | 5 # bytes(string) -- UTF-k to UTF-8 transcoding with U+FFFD replacement 10 assert.eq(bytes("hello, 世界"[:-1]), b"hello, 世��") 12 # bytes(iterable of int) -- construct from numeric byte values 13 assert.eq(bytes([65, 66, 67]), b"ABC") 14 assert.eq(bytes((65, 66, 67)), b"ABC") 15 assert.eq(bytes([0xf0, 0x9f, 0x98, 0xbf]), b"") 17 "at index 0, 300 out of range .want value in unsigned 8-bit range") 23 assert.eq(b"hello, 世界", hello) 24 assert.eq(b"goodbye", goodbye) 25 assert.eq(b"", empty) [all …]
|
D | builtins.star | 1 # Tests of Starlark built-in functions 7 assert.eq(len([1, 2, 3]), 3) 8 assert.eq(len((1, 2, 3)), 3) 9 assert.eq(len({1: 2}), 1) 13 assert.eq(123 or "foo", 123) 14 assert.eq(0 or "foo", "foo") 15 assert.eq(123 and "foo", "foo") 16 assert.eq(0 and "foo", 0) 40 assert.eq(sorted([42, 123, 3]), [3, 42, 123]) 41 assert.eq(sorted([42, 123, 3], reverse=True), [123, 42, 3]) [all …]
|
/external/cronet/tot/third_party/icu/source/i18n/ |
D | number_decimfmtprops.cpp | 45 formatWidth = -1; in clear() 46 groupingSize = -1; in clear() 49 maximumFractionDigits = -1; in clear() 50 maximumIntegerDigits = -1; in clear() 51 maximumSignificantDigits = -1; in clear() 52 minimumExponentDigits = -1; in clear() 53 minimumFractionDigits = -1; in clear() 54 minimumGroupingDigits = -1; in clear() 55 minimumIntegerDigits = -1; in clear() 56 minimumSignificantDigits = -1; in clear() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | number_decimfmtprops.cpp | 45 formatWidth = -1; in clear() 46 groupingSize = -1; in clear() 49 maximumFractionDigits = -1; in clear() 50 maximumIntegerDigits = -1; in clear() 51 maximumSignificantDigits = -1; in clear() 52 minimumExponentDigits = -1; in clear() 53 minimumFractionDigits = -1; in clear() 54 minimumGroupingDigits = -1; in clear() 55 minimumIntegerDigits = -1; in clear() 56 minimumSignificantDigits = -1; in clear() [all …]
|
/external/cronet/stable/third_party/icu/source/i18n/ |
D | number_decimfmtprops.cpp | 45 formatWidth = -1; in clear() 46 groupingSize = -1; in clear() 49 maximumFractionDigits = -1; in clear() 50 maximumIntegerDigits = -1; in clear() 51 maximumSignificantDigits = -1; in clear() 52 minimumExponentDigits = -1; in clear() 53 minimumFractionDigits = -1; in clear() 54 minimumGroupingDigits = -1; in clear() 55 minimumIntegerDigits = -1; in clear() 56 minimumSignificantDigits = -1; in clear() [all …]
|
/external/python/cpython3/Lib/test/test_pyrepl/ |
D | test_unix_eventqueue.py | 18 def tearDown(self) -> None: 22 eq = EventQueue(self.file.fileno(), "utf-8") 24 eq.insert(event) 25 self.assertEqual(eq.get(), event) 28 eq = EventQueue(self.file.fileno(), "utf-8") 29 self.assertTrue(eq.empty()) 30 eq.insert(Event("key", "a", b"a")) 31 self.assertFalse(eq.empty()) 34 eq = EventQueue(self.file.fileno(), "utf-8") 35 eq.buf.extend(b"test") [all …]
|
/external/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.modifiers/ |
D | erase_key.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 58 typedef std::pair<C::const_iterator, C::const_iterator> Eq; in main() typedef 59 Eq eq = c.equal_range(1); in main() local 60 assert(std::distance(eq.first, eq.second) == 2); in main() 61 C::const_iterator k = eq.first; in main() 62 assert(k->first == 1); in main() 63 assert(k->second == "one"); in main() 65 assert(k->first == 1); in main() 66 assert(k->second == "four"); in main() [all …]
|
D | erase_range.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 45 typedef std::pair<C::iterator, C::iterator> Eq; in main() typedef 46 Eq eq = c.equal_range(1); in main() local 47 assert(std::distance(eq.first, eq.second) == 2); in main() 48 k = eq.first; in main() 49 assert(k->first == 1); in main() 50 assert(k->second == "one"); in main() 52 assert(k->first == 1); in main() 53 assert(k->second == "four"); in main() [all …]
|
/external/angle/third_party/abseil-cpp/absl/log/ |
D | log_basic_test_impl.inc | 8 // https://www.apache.org/licenses/LICENSE-2.0 69 using ::testing::Eq; 103 SourceFilename(Eq(__FILE__)), 104 SourceBasename(Eq("log_basic_test_impl.inc")), 105 SourceLine(Eq(log_line)), Prefix(IsTrue()), 106 LogSeverity(Eq(absl::LogSeverity::kInfo)), 108 ThreadID(Eq(absl::base_internal::GetTID())), 109 TextMessage(Eq("hello world")), 110 Verbosity(Eq(absl::LogEntry::kNoVerbosityLevel)), 112 Eq(__FILE__), Eq(log_line), InMatchWindow(), [all …]
|
/external/python/cpython3/Lib/test/test_future_stmt/ |
D | test_future.py | 160 # bpo-39562: test that future flags and compiler flags doesn't clash 180 p = spawn_python('-i') 209 def f() -> {ann}: 211 def g(arg: {ann}) -> None: 213 async def f2() -> {ann}: 215 async def g2(arg: {ann}) -> None: 247 expected = annotation if not is_tuple else annotation[1:-1] 263 eq = self.assertAnnotationEqual 264 eq('...') 265 eq("'some_string'") [all …]
|
/external/federated-compute/fcp/secagg/shared/ |
D | math_test.cc | 8 * https://www.apache.org/licenses/LICENSE-2.0 28 using ::testing::Eq; 31 EXPECT_THAT(DivideRoundUp(0, 8), Eq(0)); in TEST() 32 EXPECT_THAT(DivideRoundUp(1, 8), Eq(1)); in TEST() 33 EXPECT_THAT(DivideRoundUp(8, 8), Eq(1)); in TEST() 34 EXPECT_THAT(DivideRoundUp(12, 8), Eq(2)); in TEST() 35 EXPECT_THAT(DivideRoundUp(31, 8), Eq(4)); in TEST() 36 EXPECT_THAT(DivideRoundUp(32, 8), Eq(4)); in TEST() 37 EXPECT_THAT(DivideRoundUp(33, 8), Eq(5)); in TEST() 41 // power-of-2 moduli in TEST() [all …]
|
/external/cronet/tot/third_party/abseil-cpp/absl/log/ |
D | log_basic_test_impl.inc | 8 // https://www.apache.org/licenses/LICENSE-2.0 69 using ::testing::Eq; 103 SourceFilename(Eq(__FILE__)), 104 SourceBasename(Eq("log_basic_test_impl.inc")), 105 SourceLine(Eq(log_line)), Prefix(IsTrue()), 106 LogSeverity(Eq(absl::LogSeverity::kInfo)), 108 ThreadID(Eq(absl::base_internal::GetTID())), 109 TextMessage(Eq("hello world")), 110 Verbosity(Eq(absl::LogEntry::kNoVerbosityLevel)), 112 Eq(__FILE__), Eq(log_line), InMatchWindow(), [all …]
|
/external/cronet/stable/third_party/abseil-cpp/absl/log/ |
D | log_basic_test_impl.inc | 8 // https://www.apache.org/licenses/LICENSE-2.0 69 using ::testing::Eq; 103 SourceFilename(Eq(__FILE__)), 104 SourceBasename(Eq("log_basic_test_impl.inc")), 105 SourceLine(Eq(log_line)), Prefix(IsTrue()), 106 LogSeverity(Eq(absl::LogSeverity::kInfo)), 108 ThreadID(Eq(absl::base_internal::GetTID())), 109 TextMessage(Eq("hello world")), 110 Verbosity(Eq(absl::LogEntry::kNoVerbosityLevel)), 112 Eq(__FILE__), Eq(log_line), InMatchWindow(), [all …]
|
/external/abseil-cpp/absl/log/ |
D | log_basic_test_impl.inc | 8 // https://www.apache.org/licenses/LICENSE-2.0 69 using ::testing::Eq; 103 SourceFilename(Eq(__FILE__)), 104 SourceBasename(Eq("log_basic_test_impl.inc")), 105 SourceLine(Eq(log_line)), Prefix(IsTrue()), 106 LogSeverity(Eq(absl::LogSeverity::kInfo)), 108 ThreadID(Eq(absl::base_internal::GetTID())), 109 TextMessage(Eq("hello world")), 110 Verbosity(Eq(absl::LogEntry::kNoVerbosityLevel)), 112 Eq(__FILE__), Eq(log_line), InMatchWindow(), [all …]
|
/external/grpc-grpc/test/cpp/ext/filters/logging/ |
D | logging_test.cc | 9 // http://www.apache.org/licenses/LICENSE-2.0 49 using ::testing::Eq; 55 g_test_logging_sink->SetConfig(LoggingSink::Config(4096, 4096)); in TEST_F() 58 request.mutable_param()->set_echo_metadata_initially(true); in TEST_F() 59 request.mutable_param()->set_echo_metadata(true); in TEST_F() 63 grpc::Status status = stub_->Echo(&context, request, &response); in TEST_F() 65 g_test_logging_sink->WaitForNumEntries(12, absl::Seconds(5)); in TEST_F() 67 g_test_logging_sink->entries(), in TEST_F() 70 Eq(LoggingSink::Entry::EventType::kClientHeader)), in TEST_F() 72 Eq(LoggingSink::Entry::Logger::kClient)), in TEST_F() [all …]
|
/external/cronet/tot/third_party/libc++/src/test/std/containers/unord/unord.multimap/unord.multimap.modifiers/ |
D | erase_key.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 60 typedef std::pair<C::const_iterator, C::const_iterator> Eq; in main() typedef 61 Eq eq = c.equal_range(1); in main() local 62 assert(std::distance(eq.first, eq.second) == 2); in main() 67 eq = c.equal_range(2); in main() 68 assert(std::distance(eq.first, eq.second) == 2); in main() 72 eq = c.equal_range(3); in main() 73 assert(std::distance(eq.first, eq.second) == 1); in main() [all …]
|
/external/cronet/stable/third_party/libc++/src/test/std/containers/unord/unord.multimap/unord.multimap.modifiers/ |
D | erase_key.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 60 typedef std::pair<C::const_iterator, C::const_iterator> Eq; in main() typedef 61 Eq eq = c.equal_range(1); in main() local 62 assert(std::distance(eq.first, eq.second) == 2); in main() 67 eq = c.equal_range(2); in main() 68 assert(std::distance(eq.first, eq.second) == 2); in main() 72 eq = c.equal_range(3); in main() 73 assert(std::distance(eq.first, eq.second) == 1); in main() [all …]
|
/external/federated-compute/fcp/aggregation/core/ |
D | input_tensor_list_test.cc | 8 * http://www.apache.org/licenses/LICENSE-2.0 33 using testing::Eq; 71 EXPECT_THAT(tensor_list.size(), Eq(3)); in TEST_F() 77 EXPECT_THAT((*iter)->shape(), Eq(TensorShape{1})); in TEST_F() 79 EXPECT_THAT((*iter)->shape(), Eq(TensorShape{2})); in TEST_F() 81 EXPECT_THAT((*iter)->shape(), Eq(TensorShape{3})); in TEST_F() 83 EXPECT_THAT(iter, Eq(tensor_list.end())); in TEST_F() 90 EXPECT_THAT((*iter)->shape(), Eq(TensorShape{1})); in TEST_F() 92 EXPECT_THAT((*iter)->shape(), Eq(TensorShape{2})); in TEST_F() 94 EXPECT_THAT((*iter)->shape(), Eq(TensorShape{3})); in TEST_F() [all …]
|
/external/linux-kselftest/tools/testing/selftests/kexec/ |
D | test_kexec_file_load.sh | 2 # SPDX-License-Identifier: GPL-2.0 11 # enabled or access to the extract-ikconfig script. 16 trap "{ rm -f $IKCONFIG ; }" EXIT 30 if [ $? -eq 1 ]; then 42 if [ $ima_read_policy -eq 1 ]; then 46 if [ $ret -eq 1 ]; then 52 [ $ret -eq 1 ] && log_info "IMA signature required"; 64 pesign -i $KERNEL_IMAGE --show-signature | grep -q "No signatures" 66 if [ $ret -eq 1 ]; then 81 if [ $? -eq 1 ]; then [all …]
|