Home
last modified time | relevance | path

Searched refs:Equal (Results 1 – 25 of 224) sorted by relevance

123456789

/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_text.py47 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 …]
Dtest_searchengine.py94 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 …]
Dtest_paragraph.py23 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 …]
Dtest_autocomplete.py67 Equal = self.assertEqual
75 Equal(o_c_l.args, None)
80 Equal(o_c_l.args, (False, False, False, 1))
86 Equal(o_c_l.args, (False, False, False, 2))
89 Equal = self.assertEqual
106 Equal(self.autocomplete.autocomplete_event(ev), 'break')
113 Equal(self.autocomplete.autocomplete_event(ev), None)
114 Equal(o_cs.args, (False, True, True))
116 Equal(self.autocomplete.autocomplete_event(ev), 'break')
117 Equal(o_cs.args, (False, True, True))
Dtest_config.py144 Equal = self.assertEqual
148 Equal(config._warned, {('warning','key')})
149 Equal(stderr.getvalue(), 'warning'+'\n')
152 Equal(stderr.getvalue(), '')
155 Equal(config._warned, {('warning','key'), ('warn2','yek')})
156 Equal(stderr.getvalue(), 'warn2'+'\n')
Dtest_query.py55 Equal = self.assertEqual
56 Equal(dialog.entry_ok(), 'good')
57 Equal((dialog.result, dialog.destroyed), (None, False))
58 Equal(dialog.entry_error['text'], '')
207 Equal = self.assertEqual
301 Equal = self.assertEqual
341 Equal = self.assertEqual
342 Equal(dialog.entry.get(), '__test__')
343 Equal(dialog.path.get(), __file__)
346 Equal(dialog.result, ('__test__', prefix + __file__))
Dtest_history.py93 Equal = self.assertEqual
94 Equal(self.text.get('iomark', 'end-1c'), line)
95 Equal(self.text._bell, bell)
98 Equal(History.prefix, prefix)
99 Equal(History.pointer, index)
100 Equal(self.text.compare("insert", '==', "end-1c"), 1)
/external/python/cpython2/Lib/idlelib/idle_test/
Dtest_text.py45 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 …]
Dtest_searchengine.py94 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 …]
Dtest_formatparagraph.py23 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 …]
Dtest_autocomplete.py63 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))
Dtest_idlehistory.py93 Equal = self.assertEqual
94 Equal(self.text.get('iomark', 'end-1c'), line)
95 Equal(self.text._bell, bell)
98 Equal(History.prefix, prefix)
99 Equal(History.pointer, index)
100 Equal(self.text.compare("insert", '==', "end-1c"), 1)
/external/flatbuffers/tests/
DphpTest.php112 $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/tensorflow/tensorflow/compiler/xla/service/
Dshape_inference_test.cc67 EXPECT_TRUE(ShapeUtil::Equal(expected_inferred_shape, in ExpectInferredReduceShape()
107 ASSERT_TRUE(ShapeUtil::Equal(matrix_shape, inferred_status.ValueOrDie())); in TEST_F()
115 ASSERT_TRUE(ShapeUtil::Equal(tuple, inferred_status.ValueOrDie())); in TEST_F()
122 ASSERT_TRUE(ShapeUtil::Equal(matrix_64_48_, inferred_status.ValueOrDie())); in TEST_F()
130 ASSERT_TRUE(ShapeUtil::Equal(matrix_64_48_, inferred_status.ValueOrDie())); in TEST_F()
168 ASSERT_TRUE(ShapeUtil::Equal(matrix_64_48_, inferred_status.ValueOrDie())); in TEST_F()
175 ASSERT_TRUE(ShapeUtil::Equal(f32_, inferred_status.ValueOrDie())); in TEST_F()
182 ASSERT_TRUE(ShapeUtil::Equal(matrix_64_48_, inferred_status.ValueOrDie())); in TEST_F()
189 ASSERT_TRUE(ShapeUtil::Equal(matrix_64_48_, inferred_status.ValueOrDie())); in TEST_F()
196 ASSERT_TRUE(ShapeUtil::Equal(matrix_64_48_, inferred_status.ValueOrDie())); in TEST_F()
[all …]
Dlayout_assignment_test.cc87 EXPECT_TRUE(LayoutUtil::Equal(layout, param0->shape().layout())); in TEST_F()
88 EXPECT_TRUE(LayoutUtil::Equal(layout, param1->shape().layout())); in TEST_F()
89 EXPECT_TRUE(LayoutUtil::Equal(layout, add->shape().layout())); in TEST_F()
123 EXPECT_TRUE(LayoutUtil::Equal(col_major_layout, param0->shape().layout())); in TEST_F()
124 EXPECT_TRUE(LayoutUtil::Equal(row_major_layout, param1->shape().layout())); in TEST_F()
125 EXPECT_TRUE(LayoutUtil::Equal( in TEST_F()
169 EXPECT_TRUE(LayoutUtil::Equal( in TEST_F()
171 EXPECT_TRUE(LayoutUtil::Equal( in TEST_F()
173 EXPECT_TRUE(LayoutUtil::Equal( in TEST_F()
309 EXPECT_TRUE(ShapeUtil::Equal(result_shape, root->shape())); in TEST_F()
[all …]
/external/tensorflow/tensorflow/compiler/xla/
Dshape_util_test.cc78 ASSERT_TRUE(ShapeUtil::Equal(expected, actual)) in TEST()
90 ASSERT_TRUE(ShapeUtil::Equal(expected, actual)) in TEST()
104 ASSERT_TRUE(ShapeUtil::Equal(expected, actual)) in TEST()
114 ASSERT_TRUE(ShapeUtil::Equal(expected, actual)) in TEST()
124 ASSERT_TRUE(ShapeUtil::Equal(expected, actual)) in TEST()
134 ASSERT_TRUE(ShapeUtil::Equal(expected, actual)) in TEST()
169 EXPECT_FALSE(ShapeUtil::Equal(shape_1, shape_2)); in TEST()
248 EXPECT_FALSE(ShapeUtil::Equal(shape1, shape2)); in TEST()
258 EXPECT_FALSE(ShapeUtil::Equal(shape1, shape2)); in TEST()
271 EXPECT_TRUE(ShapeUtil::Equal(scalar_default_layout, scalar_empty_min2maj)); in TEST()
[all …]
Dshape_layout.cc50 return ShapeUtil::Equal(shape, shape_); in MatchesLayoutInShape()
71 return ShapeUtil::Equal(shape_, other.shape_); in operator ==()
75 return !ShapeUtil::Equal(shape_, other.shape_); in operator !=()
Dlayout_util_test.cc246 EXPECT_FALSE(LayoutUtil::Equal(shape.tuple_shapes(0).layout(), in TEST_F()
249 EXPECT_TRUE(LayoutUtil::Equal(shape.tuple_shapes(0).layout(), in TEST_F()
251 EXPECT_TRUE(LayoutUtil::Equal( in TEST_F()
281 EXPECT_TRUE(LayoutUtil::Equal(LayoutUtil::MakeLayout({1, 0}), in TEST_F()
283 EXPECT_TRUE(LayoutUtil::Equal(LayoutUtil::MakeLayout({2, 1, 0}), in TEST_F()
285 EXPECT_TRUE(LayoutUtil::Equal(LayoutUtil::MakeLayout({3, 2, 1, 0}), in TEST_F()
288 LayoutUtil::Equal(LayoutUtil::MakeLayout({4, 3, 2, 1, 0}), in TEST_F()
/external/swiftshader/third_party/subzero/tests_lit/llvm2ice_tests/
Dbranch-simple.ll15 br i1 %r1, label %Equal, label %Unequal
16 Equal:
21 ; CHECK: br i1 %r1, label %Equal, label %Unequal
22 ; CHECK: Equal:
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dcpu_layout_assignment_test.cc79 EXPECT_TRUE(LayoutUtil::Equal(LayoutUtil::MakeLayout({1, 0}), in TEST_F()
81 EXPECT_TRUE(LayoutUtil::Equal(LayoutUtil::MakeLayout({0, 1}), in TEST_F()
83 EXPECT_TRUE(LayoutUtil::Equal(LayoutUtil::MakeLayout({1, 0}), in TEST_F()
120 EXPECT_TRUE(LayoutUtil::Equal(LayoutUtil::MakeLayout({0, 1}), in TEST_F()
124 EXPECT_TRUE(LayoutUtil::Equal(LayoutUtil::MakeLayout({1, 0}), in TEST_F()
168 EXPECT_TRUE(LayoutUtil::Equal(LayoutUtil::MakeLayout({1, 0}), in TEST_F()
199 EXPECT_TRUE(LayoutUtil::Equal(LayoutUtil::MakeLayout({1, 0}), in TEST_F()
239 EXPECT_TRUE(LayoutUtil::Equal(LayoutUtil::MakeLayout({1, 0}), in TEST_F()
328 EXPECT_TRUE(LayoutUtil::Equal( in AssertCorrectLayoutForDotOutputFusion()
332 EXPECT_TRUE(LayoutUtil::Equal( in AssertCorrectLayoutForDotOutputFusion()
[all …]
/external/golang-protobuf/proto/
Dequal.go72 func Equal(a, b Message) bool { func
116 if !bytes.Equal(b1.Bytes(), b2.Bytes()) {
149 if !bytes.Equal(u1, u2) {
162 return Equal(m1, m2)
218 return bytes.Equal(v1.Interface().([]byte), v2.Interface().([]byte))
/external/golang-protobuf/ptypes/
Dany_test.go52 if err != nil || !proto.Equal(unpacked, orig) {
88 if !proto.Equal(got.Message, want) {
103 if !proto.Equal(got, want) {
/external/boringssl/src/ssl/test/runner/
Dchacha20_poly1305_test.go78 if !bytes.Equal(out, expected) {
129 } else if !bytes.Equal(out, input) {
134 if !bytes.Equal(out, output) {
/external/tensorflow/tensorflow/core/framework/
Dtensor_testutil.h164 static void Equal(const T& a, const T& b) { ExpectEqual(a, b); }
166 static void Equal(const Tensor& x, const Tensor& y) {
181 static void Equal(const T& a, const T& b) { ExpectEqual(a, b); }
183 static void Equal(const Tensor& x, const Tensor& y) {
217 internal::Expector<T>::Equal(x, y);
/external/brotli/go/cbrotli/
Dcbrotli_test.go24 if !bytes.Equal(uncompressed, wantOriginalData) {
166 if !bytes.Equal(decompressed, input) {
250 if n, err := reader.Read(got); err != nil || n != wantLen || !bytes.Equal(got, segment) {
269 if got := decodedOutput.Bytes(); !bytes.Equal(got, content) {
286 if !bytes.Equal(decoded, content) {
352 if !bytes.Equal(decoded, input) {

123456789