Home
last modified time | relevance | path

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

1234

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_heapq.py82 self.assertEqual(heap, sorted(data)[-10:])
104 self.assertEqual(list(self.heapiter(heap)), sorted(data)[-10:])
116 self.assertEqual(list(self.heapiter(heap)), sorted(data)[-10:])
151 self.assertEqual(heap_sorted, sorted(data))
156 row = sorted(random.randrange(1000) for j in range(random.randrange(10)))
158 self.assertEqual(sorted(chain(*inputs)), list(self.module.merge(*inputs)))
174 self.assertEqual(result, sorted(result))
180 self.assertEqual(self.module.nsmallest(n, data), sorted(data)[:n])
182 sorted(data, key=f)[:n])
189 sorted(data, reverse=True)[:n])
[all …]
Dtest_dbm.py22 self.assertEqual(sorted(self.d.keys()), sorted(k for (k, v) in a))
Dtest_rlcompleter.py34 self.assertEqual(sorted(self.stdcompleter.global_matches('di')),
36 self.assertEqual(sorted(self.stdcompleter.global_matches('st')),
Dtest_collections.py611 self.assertEqual(sorted(c.values()), [1, 2, 3])
612 self.assertEqual(sorted(c.keys()), ['a', 'b', 'c'])
613 self.assertEqual(sorted(c), ['a', 'b', 'c'])
614 self.assertEqual(sorted(c.items()),
631 self.assertEqual(''.join(sorted(c.elements())), 'aaabbc')
640 self.assertEqual(''.join(sorted(c.elements())), 'aaaaffff')
704 self.assertEqual(sorted(Counter(s).elements()), sorted(s))
705 self.assertEqual(sorted(Counter(s)), sorted(set(s)))
771 self.assertEqual(sorted(OrderedDict(dict(pairs)).items()), pairs) # dict input
772 self.assertEqual(sorted(OrderedDict(**dict(pairs)).items()), pairs) # kwds input
[all …]
Dtest_itertools.py111 if sorted(indices) == list(indices):
128 self.assertEqual(result, sorted(result)) # lexicographic order
132 self.assertEqual(list(c), sorted(c)) # keep original ordering
176 if sorted(indices) == list(indices):
191 self.assertEqual(result, sorted(result)) # lexicographic order
203 self.assertEqual(list(c), sorted(c)) # keep original ordering
263 self.assertEqual(result, sorted(result)) # lexicographic order
297 self.assertEqual(prod, sorted(set(prod)))
298 self.assertEqual(cwr, sorted(set(cwr)))
299 self.assertEqual(perm, sorted(set(perm)))
[all …]
Dtest_cookie.py37 for k, v in sorted(case['dict'].iteritems()):
Dtest_pydoc.py357 self.assertEqual(sorted(pydoc.Helper.keywords),
358 sorted(keyword.kwlist))
Dtest___all__.py51 for fn in sorted(os.listdir(basedir)):
Dtest_rfc822.py198 self.assertEqual(sorted(m), ['date', 'from', 'subject', 'to'])
Dtest_builtin.py879 sorted(reversed(data), key=f)[-1])
925 sorted(data, key=f)[0])
1651 self.assertEqual(data, sorted(copy))
1656 self.assertEqual(data, sorted(copy, cmp=lambda x, y: cmp(y,x)))
1659 self.assertEqual(data, sorted(copy, key=lambda x: -x))
1662 self.assertEqual(data, sorted(copy, reverse=1))
1671 self.assertEqual(sorted(s), sorted(T(s)))
1678 self.assertEqual(sorted(s), sorted(T(s)))
1682 self.assertRaises(TypeError, sorted, data, None, lambda x,y: 0)
Dlock_tests.py456 self.assertEqual(sorted(results1 + results2), [0] * 6 + [1] * 7)
462 self.assertEqual(sorted(results1 + results2), [0] * 6 + [1] * 7 + [2] * 6)
488 self.assertEqual(sorted(results), [False] * 7 + [True] * 3 )
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/unicode/
Dmkstringprep.py149 table = sorted(table.keys())
179 b3 = sorted(b3_exceptions.items())
354 table = sorted(table.keys())
367 table = sorted(table.keys())
380 table = sorted(table.keys())
393 table = sorted(table.keys())
Dgencodec.py152 mappings = sorted(map.items())
200 mappings = sorted(map.items())
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/comparisons/
Dsortingtest.py40 items = sorted(makekey(item) for item in line.split())
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dheapq.py216 result = sorted(islice(it, 0, n))
378 return sorted(iterable, key=key)[:n]
416 return sorted(iterable, key=key, reverse=True)[:n]
Dabc.py123 for name in sorted(cls.__dict__.keys()):
Dsets.py95 def _repr(self, sorted=False): argument
97 if sorted:
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/compiler/
Dsymbols.py412 return sorted(l1) == sorted(l2)
440 print sorted(mod_names)
441 print sorted(names2)
460 print sorted(get_names(s.get_namespace()))
461 print sorted(l[0].get_names())
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/
Dmain.py163 rt = StdoutRefactoringTool(sorted(fixer_names), flags, sorted(explicit),
/device/linaro/bootloader/edk2/BaseTools/Scripts/
DMemoryProfileSymbolGen.py99 … self.listLineAddress = sorted(self.listLineAddress, key=lambda symbolAddress:symbolAddress[0])
158 … self.listLineAddress = sorted(self.listLineAddress, key=lambda symbolAddress:symbolAddress[0])
/device/google/contexthub/firmware/lib/builtins/
DCREDITS.TXT6 The list is sorted by surname and formatted to allow easy grepping and
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dheapq.py421 return sorted(iterable, key=key)[:n]
459 return sorted(iterable, key=key, reverse=True)[:n]
Dabc.py123 for name in sorted(cls.__dict__.keys()):
/device/linaro/bootloader/edk2/BaseTools/Source/Python/AutoGen/
DStrGather.py598 Uni = UniFileClassObject(sorted (UniFilList), True, IncludePathList)
600 Uni = UniFileClassObject(sorted (UniFilList), IsCompatibleMode, IncludePathList)
606 Uni = SearchString(Uni, sorted (FileList), IsCompatibleMode)
/device/linaro/bootloader/edk2/ArmPlatformPkg/Scripts/Ds5/
Dprofile.py319 sorted_functions_cycles = sorted(functions_cycles.iteritems(), key=operator.itemgetter(1), reve…
320 sorted_all_functions_cycles = sorted(all_functions_cycles.items(), key=operator.itemgetter(1), reve…

1234