/external/python/cpython2/Lib/idlelib/idle_test/ |
D | test_text.py | 45 Equal = self.assertEqual 48 Equal(get('end'), '') 49 Equal(get('end', 'end'), '') 50 Equal(get('1.0'), 'h') 51 Equal(get('1.0', '1.1'), 'h') 52 Equal(get('1.0', '1.3'), 'hel') 53 Equal(get('1.1', '1.3'), 'el') 54 Equal(get('1.0', '1.0 lineend'), 'hello') 55 Equal(get('1.0', '1.10'), 'hello') 56 Equal(get('1.0 lineend'), '\n') [all …]
|
D | test_searchengine.py | 94 Equal = self.assertEqual 97 Equal(se.search_reverse(prog, line, len(line)).span(), (12, 14)) 98 Equal(se.search_reverse(prog, line, 14).span(), (12, 14)) 99 Equal(se.search_reverse(prog, line, 13).span(), (5, 7)) 100 Equal(se.search_reverse(prog, line, 7).span(), (5, 7)) 101 Equal(se.search_reverse(prog, line, 6), None) 114 Equal = self.assertEqual 116 Equal(engine.getpat(), '') 118 Equal(engine.getpat(), 'hello') 120 Equal(engine.isre(), False) [all …]
|
D | test_formatparagraph.py | 23 Equal = self.assertEqual 24 Equal(fp.get_indent(self.test_comment), '') 25 Equal(fp.get_indent(self.trailingws_comment), '') 26 Equal(fp.get_indent(self.leadingws_comment), ' ') 27 Equal(fp.get_indent(self.leadingws_nocomment), ' ') 30 Equal = self.assertEqual 32 Equal(fp.get_comment_header(self.test_comment), '#') 33 Equal(fp.get_comment_header(self.trailingws_comment), '#') 34 Equal(fp.get_comment_header(self.leadingws_comment), ' #') 36 Equal(fp.get_comment_header(self.leadingws_nocomment), ' ') [all …]
|
D | test_autocomplete.py | 63 Equal = self.assertEqual 71 Equal(o_c_l.args, None) 76 Equal(o_c_l.args, (False, False, False, 1)) 82 Equal(o_c_l.args, (False, False, False, 2)) 85 Equal = self.assertEqual 97 Equal(self.autocomplete.autocomplete_event(ev), 'break') 104 Equal(self.autocomplete.autocomplete_event(ev), None) 105 Equal(o_cs.args, (False, True, True)) 107 Equal(self.autocomplete.autocomplete_event(ev), 'break') 108 Equal(o_cs.args, (False, True, True))
|
/external/python/cpython3/Lib/idlelib/idle_test/ |
D | test_text.py | 47 Equal = self.assertEqual 50 Equal(get('end'), '') 51 Equal(get('end', 'end'), '') 52 Equal(get('1.0'), 'h') 53 Equal(get('1.0', '1.1'), 'h') 54 Equal(get('1.0', '1.3'), 'hel') 55 Equal(get('1.1', '1.3'), 'el') 56 Equal(get('1.0', '1.0 lineend'), 'hello') 57 Equal(get('1.0', '1.10'), 'hello') 58 Equal(get('1.0 lineend'), '\n') [all …]
|
D | test_searchengine.py | 95 Equal = self.assertEqual 98 Equal(se.search_reverse(prog, line, len(line)).span(), (12, 14)) 99 Equal(se.search_reverse(prog, line, 14).span(), (12, 14)) 100 Equal(se.search_reverse(prog, line, 13).span(), (5, 7)) 101 Equal(se.search_reverse(prog, line, 7).span(), (5, 7)) 102 Equal(se.search_reverse(prog, line, 6), None) 115 Equal = self.assertEqual 117 Equal(engine.getpat(), '') 119 Equal(engine.getpat(), 'hello') 121 Equal(engine.isre(), False) [all …]
|
D | test_autocomplete.py | 70 Equal = self.assertEqual 87 Equal(acp.autocomplete_event(ev), 'break') 94 Equal(acp.autocomplete_event(ev), None) 95 Equal(open_c.args[0], ac.TAB) 97 Equal(acp.autocomplete_event(ev), 'break') 98 Equal(open_c.args[0], ac.TAB) 101 Equal = self.assertEqual 110 Equal(after.called, 0) 113 Equal(after.called, 0) 119 Equal(acp._delayed_completion_index, text.index('insert')) [all …]
|
D | test_format.py | 26 Equal = self.assertEqual 27 Equal(ft.get_indent(self.test_comment), '') 28 Equal(ft.get_indent(self.trailingws_comment), '') 29 Equal(ft.get_indent(self.leadingws_comment), ' ') 30 Equal(ft.get_indent(self.leadingws_nocomment), ' ') 33 Equal = self.assertEqual 35 Equal(ft.get_comment_header(self.test_comment), '#') 36 Equal(ft.get_comment_header(self.trailingws_comment), '#') 37 Equal(ft.get_comment_header(self.leadingws_comment), ' #') 39 Equal(ft.get_comment_header(self.leadingws_nocomment), ' ') [all …]
|
/external/go-cmp/cmp/internal/teststructs/ |
D | structs.go | 79 func (x StructA) Equal(y StructA) bool { return true } func 80 func (x *StructB) Equal(y *StructB) bool { return true } func 81 func (x StructC) Equal(y InterfaceA) bool { return true } func 83 func (x *StructD) Equal(y InterfaceA) bool { return true } func 85 func (x *StructE) Equal(y InterfaceA) bool { return true } func 87 func (x StructF) Equal(y InterfaceA) bool { return true } func 89 func (x StructNo) Equal(y InterfaceA) bool { return true } func 91 func (x AssignA) Equal(y func() int) bool { return true } func 92 func (x AssignB) Equal(y struct{ A int }) bool { return true } func 93 func (x AssignC) Equal(y chan bool) bool { return true } func [all …]
|
/external/tensorflow/tensorflow/core/kernels/mlir_generated/ |
D | gpu_op_equal.cc | 23 GENERATE_AND_REGISTER_BINARY_GPU_KERNEL2(Equal, DT_HALF, DT_BOOL); 24 GENERATE_AND_REGISTER_BINARY_GPU_KERNEL2(Equal, DT_FLOAT, DT_BOOL); 25 GENERATE_AND_REGISTER_BINARY_GPU_KERNEL2(Equal, DT_DOUBLE, DT_BOOL); 26 GENERATE_AND_REGISTER_BINARY_GPU_KERNEL2(Equal, DT_BOOL, DT_BOOL); 27 GENERATE_AND_REGISTER_BINARY_GPU_KERNEL2(Equal, DT_INT8, DT_BOOL); 28 GENERATE_AND_REGISTER_BINARY_GPU_KERNEL2(Equal, DT_INT16, DT_BOOL); 30 GENERATE_AND_REGISTER_BINARY_GPU_KERNEL2(Equal, DT_INT64, DT_BOOL); 31 GENERATE_AND_REGISTER_BINARY_GPU_KERNEL3(Equal, DT_INT8, DT_BOOL, DT_UINT8, 33 GENERATE_AND_REGISTER_BINARY_GPU_KERNEL3(Equal, DT_INT16, DT_BOOL, DT_UINT16, 35 GENERATE_AND_REGISTER_BINARY_GPU_KERNEL3(Equal, DT_INT32, DT_BOOL, DT_UINT32, [all …]
|
/external/go-cmp/cmp/ |
D | example_test.go | 79 fmt.Println(cmp.Equal(x, y, opt)) 80 fmt.Println(cmp.Equal(y, z, opt)) 81 fmt.Println(cmp.Equal(z, x, opt)) 105 fmt.Println(cmp.Equal(x, y, opt)) 106 fmt.Println(cmp.Equal(y, z, opt)) 107 fmt.Println(cmp.Equal(z, x, opt)) 146 fmt.Println(cmp.Equal(x, y, opts)) 147 fmt.Println(cmp.Equal(y, z, opts)) 148 fmt.Println(cmp.Equal(z, x, opts)) 179 fmt.Println(cmp.Equal(x, y, opt)) [all …]
|
/external/flatbuffers/tests/ |
D | phpTest.php | 112 $assert->Equal($pos->GetTest1(), 3.0); 143 $assert->Equal('Fred', $fred->getName()); 338 $assert->Equal($uut->capacity(), strlen($buffer)); 344 …$assert->Equal("\x63", $uut->_buffer[0]); // don't share buffer as php user might confuse referenc… 359 $assert->Equal(chr(0x01), $uut->_buffer[0]); 360 $assert->Equal(chr(0x00), $uut->_buffer[1]); 367 $assert->Equal(chr(0x00), $uut->_buffer[0]); 368 $assert->Equal(chr(0x80), $uut->_buffer[1]); 395 $assert->Equal(chr(0x0D), $uut->_buffer[0]); 396 $assert->Equal(chr(0x0C), $uut->_buffer[1]); [all …]
|
/external/pigweed/pw_bytes/ |
D | array_test.cc | 28 constexpr bool Equal(const T& lhs, const U& rhs) { in Equal() function 49 static_assert(Equal(String("Hello"), kHello)); 50 static_assert(Equal(String(""), std::array<byte, 0>{})); 51 static_assert(Equal(MakeArray('H', 'e', 'l', 'l', 'o'), kHello)); 52 static_assert(Equal(Concat('H', kEllo), kHello)); 55 static_assert(Equal(Initialized<3>('?'), kInit)); 58 static_assert(Equal(Initialized<3>([](size_t i) { return i; }), kCounting)); in __anon6ec0bd580202() 61 static_assert(Equal(Initialized<3>([](size_t i) { return i; }), kCounting2)); in __anon6ec0bd580302() 64 static_assert(Equal(MakeArray(1, 2, 3, 255), kArray)); 67 static_assert(Equal(MakeArray<uint8_t>(1, 2, 3, 255), kUintArray));
|
D | endian_test.cc | 90 constexpr bool Equal(const T& lhs, const U& rhs) { in Equal() function 109 static_assert(Equal(CopyInOrder(endian::little, '?'), 111 static_assert(Equal(CopyInOrder(endian::little, uint8_t{0x10}), 113 static_assert(Equal(CopyInOrder(endian::little, static_cast<int8_t>(0x10)), 117 static_assert(Equal(CopyInOrder(endian::big, '?'), 119 static_assert(Equal(CopyInOrder(endian::big, static_cast<uint8_t>(0x10)), 121 static_assert(Equal(CopyInOrder(endian::big, static_cast<int8_t>(0x10)), 125 static_assert(Equal(CopyInOrder(endian::little, uint16_t{0xAB12}), 127 static_assert(Equal(CopyInOrder(endian::little, static_cast<int16_t>(0xAB12)), 131 static_assert(Equal(CopyInOrder(endian::big, uint16_t{0xAB12}), [all …]
|
/external/skia/bazel/exporter/ |
D | bazel_util_test.go | 23 assert.Equal(t, expected, actual) 52 assert.Equal(t, expectedRepo, repo) 53 assert.Equal(t, expectedPath, path) 54 assert.Equal(t, expectedTarget, target) 69 assert.Equal(t, "/path/to/file.txt", path) 70 assert.Equal(t, 12, line) 71 assert.Equal(t, 875, pos) 77 assert.Equal(t, "/path/to", path) 85 assert.Equal(t, expectedName, cmakeName) 106 assert.Equal(t, []string{"one", "two"}, slice) [all …]
|
D | gni_exporter_test.go | 106 assert.Equal(t, "/path/to/workspace/gn/core.gni", filepath.ToSlash(path)) 114 assert.Equal(t, publicSrcsExpectedGNI, contents.String()) 122 assert.Equal(t, expectedPath, path) 199 assert.Equal(t, expected, e.workspaceToAbsPath(input)) 218 assert.Equal(t, expected, path) 241 assert.Equal(t, expected, getGNILineVariable(inputLine)) 254 assert.Equal(t, expected, getGNILineVariable(inputLine)) 277 assert.Equal(t, expected, extractTopLevelFolder(input)) 289 assert.Equal(t, expected, extractTopLevelFolder(input)) 302 assert.Equal(t, expected, gniPaths) [all …]
|
/external/tensorflow/tensorflow/compiler/xla/tests/ |
D | literal_test_util_test.cc | 38 EXPECT_TRUE(LiteralTestUtil::Equal(literal, literal)); in TEST() 46 EXPECT_TRUE(LiteralTestUtil::Equal(literal, literal)); in TEST() 54 EXPECT_TRUE(LiteralTestUtil::Equal(literal, literal)); in TEST() 74 EXPECT_FALSE(LiteralTestUtil::Equal(literal0, literal1)); in TEST() 75 EXPECT_FALSE(LiteralTestUtil::Equal(literal0, literal2)); in TEST() 76 EXPECT_FALSE(LiteralTestUtil::Equal(literal0, literal3)); in TEST() 77 EXPECT_FALSE(LiteralTestUtil::Equal(literal2, literal3)); in TEST() 97 EXPECT_FALSE(LiteralTestUtil::Equal(literal0, literal1)); in TEST() 98 EXPECT_FALSE(LiteralTestUtil::Equal(literal0, literal2)); in TEST() 99 EXPECT_FALSE(LiteralTestUtil::Equal(literal0, literal3)); in TEST() [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/libcxx/algorithms/ |
D | ranges_robust_against_copying_comparators.pass.cpp | 29 struct Equal { struct 31 constexpr explicit Equal(int *copies) : copies_(copies) {} in Equal() argument 32 constexpr Equal(const Equal& rhs) : copies_(rhs.copies_) { *copies_ += 1; } in Equal() function 33 constexpr Equal& operator=(const Equal&) = default; 92 (void)std::ranges::adjacent_find(first, last, Equal(&copies)); assert(copies == 0); in all_the_algorithms() 93 (void)std::ranges::adjacent_find(a, Equal(&copies)); assert(copies == 0); in all_the_algorithms() 108 (void)std::ranges::equal(first, last, first2, last2, Equal(&copies)); assert(copies == 0); in all_the_algorithms() 109 (void)std::ranges::equal(a, b, Equal(&copies)); assert(copies == 0); in all_the_algorithms() 112 (void)std::ranges::find_end(first, last, first2, mid2, Equal(&copies)); assert(copies == 0); in all_the_algorithms() 113 (void)std::ranges::find_end(a, b, Equal(&copies)); assert(copies == 0); in all_the_algorithms() [all …]
|
D | robust_against_copying_comparators.pass.cpp | 28 struct Equal { struct 30 TEST_CONSTEXPR explicit Equal(int *copies) : copies_(copies) {} in Equal() argument 31 TEST_CONSTEXPR_CXX14 Equal(const Equal& rhs) : copies_(rhs.copies_) { *copies_ += 1; } in Equal() argument 32 TEST_CONSTEXPR_CXX14 Equal& operator=(const Equal&) = default; 107 (void)std::adjacent_find(first, last, Equal<T>(&copies)); assert(copies == 0); in all_the_algorithms() 118 (void)std::equal(first, last, first2, Equal<T>(&copies)); assert(copies == 0); in all_the_algorithms() 120 (void)std::equal(first, last, first2, last2, Equal<T>(&copies)); assert(copies == 0); in all_the_algorithms() 123 (void)std::find_end(first, last, first2, mid2, Equal<T>(&copies)); assert(copies == 0); in all_the_algorithms() 124 (void)std::find_first_of(first, last, first2, last2, Equal<T>(&copies)); assert(copies == 0); in all_the_algorithms() 137 (void)std::is_permutation(first, last, first2, Equal<T>(&copies)); assert(copies == 0); in all_the_algorithms() [all …]
|
/external/pigweed/pw_protobuf/ |
D | message_test.cc | 71 Result<bool> cmp = str.Equal("foo 1"); in TEST() 268 Result<bool> cmp = value.Equal("string"); in TEST() 272 cmp = value.Equal("other"); in TEST() 277 cmp = value.Equal("string and more"); in TEST() 282 cmp = value.Equal("str"); in TEST() 325 Result<bool> res = ele.Equal(expected[count++]); in TEST() 344 Result<bool> res = ele.Equal(expected[count++]); in TEST() 388 Result<bool> cmp = first->Equal("foo 1"); in TEST() 394 cmp = second->Equal("bar 1"); in TEST() 525 Result<bool> cmp = number.Equal("123456"); in TEST() [all …]
|
/external/licenseclassifier/stringclassifier/internal/sets/ |
D | intset_test.go | 294 if equal := union.Equal(got); !equal { 307 if equal := union.Equal(got); !equal { 325 if equal := setA.Equal(nil); equal { 333 if equal := setA.Equal(setA); !equal { 343 if equal := setA.Equal(setB); equal { 354 if equal := setA.Equal(setC); equal { 358 if equal := setC.Equal(setA); equal { 367 if equal := setA.Equal(setA); !equal { 377 if equal := setA.Equal(anotherA); !equal { 387 if equal := nilSet.Equal(setA); equal { [all …]
|
/external/pigweed/pw_containers/ |
D | algorithm_test.cc | 225 TEST_F(NonMutatingTest, Equal) { in TEST_F() argument 226 EXPECT_TRUE(pw::containers::Equal(vector_, span_)); in TEST_F() 227 EXPECT_TRUE(pw::containers::Equal(span_, vector_)); in TEST_F() 228 EXPECT_TRUE(pw::containers::Equal(span_, array_)); in TEST_F() 229 EXPECT_TRUE(pw::containers::Equal(array_, vector_)); in TEST_F() 234 EXPECT_FALSE(pw::containers::Equal(vector_plus, span_)); in TEST_F() 235 EXPECT_FALSE(pw::containers::Equal(span_, vector_plus)); in TEST_F() 236 EXPECT_FALSE(pw::containers::Equal(array_, vector_plus)); in TEST_F() 240 EXPECT_TRUE(pw::containers::Equal(vector_, span_, Equals)); in TEST_F() 241 EXPECT_TRUE(pw::containers::Equal(span_, vector_, Equals)); in TEST_F() [all …]
|
/external/licenseclassifier/internal/sets/ |
D | stringset_test.go | 281 if equal := union.Equal(got); !equal { 294 if equal := union.Equal(got); !equal { 312 if equal := setA.Equal(nil); equal { 320 if equal := setA.Equal(setA); !equal { 330 if equal := setA.Equal(setB); equal { 341 if equal := setA.Equal(setC); equal { 345 if equal := setC.Equal(setA); equal { 354 if equal := setA.Equal(setA); !equal { 364 if equal := setA.Equal(anotherA); !equal { 374 if equal := nilSet.Equal(setA); equal { [all …]
|
/external/tensorflow/tensorflow/compiler/xla/ |
D | shape.h | 210 class Equal { 212 Equal() = default; 216 Equal& IgnoreLayout() { in IgnoreLayout() 220 Equal& IgnoreTilesInLayout() { in IgnoreTilesInLayout() 224 Equal& IgnoreElementSizeInLayout() { in IgnoreElementSizeInLayout() 228 Equal& IgnoreMemorySpaceInLayout() { in IgnoreMemorySpaceInLayout() 232 Equal& MinorToMajorOnlyInLayout() { in MinorToMajorOnlyInLayout() 238 Equal& IgnoreElementType() { in IgnoreElementType() 242 Equal& IgnoreFpPrecision() { in IgnoreFpPrecision() 246 Equal& IgnoreDynamicDimension() { in IgnoreDynamicDimension() [all …]
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | while_loop_simplifier_test.cc | 469 ShapeUtil::Equal(new_while_op->shape(), in TEST_F() 650 EXPECT_TRUE(ShapeUtil::Equal(new_while->shape(), flat_tuple)); in TEST_F() 651 EXPECT_TRUE(ShapeUtil::Equal( in TEST_F() 653 EXPECT_TRUE(ShapeUtil::Equal( in TEST_F() 655 EXPECT_TRUE(ShapeUtil::Equal( in TEST_F() 658 EXPECT_TRUE(ShapeUtil::Equal( in TEST_F() 734 EXPECT_TRUE(ShapeUtil::Equal(new_while->shape(), new_while_shape)); in TEST_F() 735 EXPECT_TRUE(ShapeUtil::Equal( in TEST_F() 737 EXPECT_TRUE(ShapeUtil::Equal( in TEST_F() 740 EXPECT_TRUE(ShapeUtil::Equal( in TEST_F() [all …]
|