Home
last modified time | relevance | path

Searched refs:reversed (Results 1 – 25 of 411) sorted by relevance

12345678910>>...17

/external/python/cpython2/Lib/test/
Dtest_enumerate.py140 self.assertEqual(list(data)[::-1], list(reversed(data)))
141 self.assertRaises(TypeError, reversed, {})
143 self.assertRaises(TypeError, reversed, [], a=1)
149 self.assertEqual(list(reversed(A())), [2, 1])
153 self.assertEqual(type(reversed(x)), type(iter(x)))
160 self.assertEqual(len(reversed(s)), len(s))
161 r = reversed(s)
173 r = reversed(SeqWithWeirdLen())
184 r = reversed(s)
188 self.assertRaises(TypeError, reversed)
[all …]
Dtest_iterlen.py67 for i in reversed(xrange(1, n+1)):
107 self.it = reversed(xrange(n))
127 self.it = reversed(d)
182 self.it = reversed(range(n))
186 it = reversed(d)
Dtest_deque.py36 for i in reversed(xrange(-200, 0)):
186 self.assertEqual(list(d), list(reversed('abcd')))
191 self.assertEqual(list(d), list(reversed(range(1000))))
246 self.assertEqual(list(d), list(reversed(data[:i])))
400 d = deque(reversed(xrange(size)))
407 self.assertEqual(list(reversed(list(d))), range(BIG-size, BIG))
435 for i in reversed(xrange(BIG)):
446 for i in reversed(xrange(BIG)):
494 self.assertEqual(list(reversed(deque(s))), list(reversed(s)))
515 container = reversed(deque([obj, 1]))
[all …]
/external/python/cpython3/Lib/test/
Dtest_enumerate.py164 self.assertEqual(list(data)[::-1], list(reversed(data)))
165 self.assertRaises(TypeError, reversed, {})
167 self.assertRaises(TypeError, reversed, [], a=1)
171 self.assertEqual(type(reversed(x)), type(iter(x)))
175 self.assertEqual(operator.length_hint(reversed(s)), len(s))
176 r = reversed(s)
188 r = reversed(SeqWithWeirdLen())
199 r = reversed(s)
203 self.assertRaises(TypeError, reversed)
204 self.assertRaises(TypeError, reversed, [], 'extra')
[all …]
Dtest_iterlen.py56 for i in reversed(range(1, n+1)):
92 self.it = reversed(range(n))
112 self.it = reversed(d)
168 self.it = reversed(range(n))
172 it = reversed(d)
Dtest_ordered_dict.py172 self.assertEqual(list(reversed(od)),
173 [t[0] for t in reversed(pairs)])
174 self.assertEqual(list(reversed(od.keys())),
175 [t[0] for t in reversed(pairs)])
176 self.assertEqual(list(reversed(od.values())),
177 [t[1] for t in reversed(pairs)])
178 self.assertEqual(list(reversed(od.items())), list(reversed(pairs)))
201 self.assertEqual(sorted(reversed(od)),
202 sorted([t[0] for t in reversed(pairs)]))
212 self.assertEqual(list(reversed(od)), empty)
[all …]
Dtest_deque.py37 for i in reversed(range(-200, 0)):
226 self.assertEqual(list(d), list(reversed('abcd')))
231 self.assertEqual(list(d), list(reversed(range(1000))))
411 self.assertEqual(list(d), list(reversed(data[:i])))
565 d = deque(reversed(range(size)))
572 self.assertEqual(list(reversed(list(d))),
601 for i in reversed(range(BIG)):
612 for i in reversed(range(BIG)):
721 self.assertEqual(list(reversed(deque(s))), list(reversed(s)))
724 klass = type(reversed(deque()))
[all …]
/external/linux-kselftest/tools/testing/selftests/powerpc/switch_endian/
DMakefile6 EXTRA_CLEAN = $(OUTPUT)/*.o $(OUTPUT)/check-reversed.S
10 $(OUTPUT)/switch_endian_test: $(OUTPUT)/check-reversed.S
12 $(OUTPUT)/check-reversed.o: $(OUTPUT)/check.o
15 $(OUTPUT)/check-reversed.S: $(OUTPUT)/check-reversed.o
/external/boringssl/src/crypto/fipsmodule/modes/
Dpolyval.c67 polyval_block reversed[32]; in CRYPTO_POLYVAL_update_blocks() local
71 if (todo > sizeof(reversed)) { in CRYPTO_POLYVAL_update_blocks()
72 todo = sizeof(reversed); in CRYPTO_POLYVAL_update_blocks()
74 OPENSSL_memcpy(reversed, in, todo); in CRYPTO_POLYVAL_update_blocks()
80 byte_reverse(&reversed[i]); in CRYPTO_POLYVAL_update_blocks()
83 ctx->ghash(ctx->S.u, ctx->Htable, (const uint8_t *) reversed, todo); in CRYPTO_POLYVAL_update_blocks()
/external/antlr/antlr-3.4/runtime/Python/antlr3/
Dcompat.py41 reversed = reversed variable
43 def reversed(l): function
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_ReverseSequence.pbtxt19 The partially reversed input. It has the same shape as `input`.
25 The dimension which is partially reversed.
45 `seq_dim` reversed.
56 # then slices of input are reversed on seq_dim, but only up to seq_lengths:
78 # then slices of input are reversed on seq_dim, but only up to seq_lengths:
/external/tensorflow/tensorflow/python/ops/distributions/
Dspecial_math.py140 p0 = list(reversed([-5.99633501014107895267E1,
145 q0 = list(reversed([1.0,
154 p1 = list(reversed([4.05544892305962419923E0,
163 q1 = list(reversed([1.0,
172 p2 = list(reversed([3.23774891776946035970E0,
181 q2 = list(reversed([1.0,
/external/llvm/test/CodeGen/AArch64/
Darm64-neon-compare-instructions.ll159 ; LT implemented as GT, so check reversed operands.
168 ; LT implemented as GT, so check reversed operands.
177 ; LT implemented as GT, so check reversed operands.
186 ; LT implemented as GT, so check reversed operands.
195 ; LT implemented as GT, so check reversed operands.
204 ; LT implemented as GT, so check reversed operands.
213 ; LT implemented as GT, so check reversed operands.
271 ; LE implemented as GE, so check reversed operands.
280 ; LE implemented as GE, so check reversed operands.
289 ; LE implemented as GE, so check reversed operands.
[all …]
Dneon-compare-instructions.ll181 ; LT implemented as GT, so check reversed operands.
191 ; LT implemented as GT, so check reversed operands.
201 ; LT implemented as GT, so check reversed operands.
211 ; LT implemented as GT, so check reversed operands.
221 ; LT implemented as GT, so check reversed operands.
231 ; LT implemented as GT, so check reversed operands.
241 ; LT implemented as GT, so check reversed operands.
307 ; LE implemented as GE, so check reversed operands.
317 ; LE implemented as GE, so check reversed operands.
327 ; LE implemented as GE, so check reversed operands.
[all …]
/external/caliper/caliper/src/test/java/com/google/caliper/util/
DLinearTranslationTest.java36 LinearTranslation reversed = new LinearTranslation(5, 42, 69, 0); in linearTranslation() local
37 assertEquals(-21, reversed.translate(101), CLOSE_ENOUGH); in linearTranslation()
/external/tensorflow/tensorflow/contrib/distributions/python/ops/bijectors/
Dchain.py120 for b in reversed(self.bijectors) if reverse else self.bijectors:
158 for b in reversed(self.bijectors):
165 for b in reversed(self.bijectors):
/external/okhttp/okio/okio/src/main/java/okio/
DUtil.java36 int reversed = (i & 0xff00) >>> 8 in reverseBytesShort() local
38 return (short) reversed; in reverseBytesShort()
/external/llvm/bindings/python/llvm/tests/
Dtest_core.py86 for f in reversed(m):
108 for bb in reversed(f):
136 for inst in reversed(bb):
/external/llvm/test/CodeGen/SystemZ/
Dvec-perm-04.ll18 ; Test a reversed v16i8 merge high.
111 ; Test a reversed v8i16 merge high.
132 ; Test a reversed v4i32 merge high.
152 ; Test a reversed v2i64 merge high.
172 ; Test a reversed v4f32 merge high.
192 ; Test a reversed v2f64 merge high.
Dvec-perm-05.ll18 ; Test a reversed v16i8 merge low.
111 ; Test a reversed v8i16 merge low.
132 ; Test a reversed v4i32 merge low.
152 ; Test a reversed v2i64 merge low.
172 ; Test a reversed v4f32 merge low.
192 ; Test a reversed v2f64 merge low.
/external/tensorflow/tensorflow/contrib/py2tf/converters/
Dlist_comprehension.py66 for gen in reversed(list_comp_node.generators):
67 for gen_if in reversed(gen.ifs):
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/charsetdet/sbcs/
DStatisticsTool.java292 ArrayList reversed = new ArrayList(statKeys.size()); in collectStatistics() local
304 reversed.add(new Integer(r)); in collectStatistics()
307 Collections.sort(reversed); in collectStatistics()
308 writeStatistics(reversed, true); in collectStatistics()
/external/autotest/scheduler/
Dgc_stats.py67 sorted_stats = reversed(sorted(
69 sorted_delta = reversed(sorted(
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DAbstractBiMapTester.java64 Entry<V, K> reversed = reverseEntry(entry); in expectMissing() local
66 assertFalse("Inverse should not contain entry " + reversed, in expectMissing()
/external/antlr/antlr-3.4/runtime/Python/tests/
Dt033backtracking.g23 reversed = reversed
25 def reversed(l):
34 for scope in reversed(self.Symbols_stack):

12345678910>>...17