Searched refs:Squares (Results 1 – 6 of 6) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | test_builtin.py | 17 class Squares: class 454 self.assertEqual(filter(None, Squares(10)), [1, 4, 9, 16, 25, 36, 49, 64, 81]) 455 self.assertEqual(filter(lambda x: x%2, Squares(10)), [1, 9, 25, 49, 81]) 458 filter(identity, Squares(5)) 772 map(None, Squares(10)), 776 map(int, Squares(10)), 780 map(None, Squares(3), Squares(2)), 784 map(max, Squares(3), Squares(2)), 1193 self.assertEqual(reduce(add, Squares(10)), 285) 1194 self.assertEqual(reduce(add, Squares(10), 0), 285) [all …]
|
D | test_functools.py | 452 class Squares: class 479 self.assertEqual(reduce(lambda x, y: x+y, Squares(10)), 285) 480 self.assertEqual(reduce(lambda x, y: x+y, Squares(10), 0), 285) 481 self.assertEqual(reduce(lambda x, y: x+y, Squares(0), 0), 0)
|
D | test_grammar.py | 626 class Squares: class 639 for x in Squares(10): n = n+x
|
/external/python/cpython2/Lib/lib2to3/tests/data/ |
D | py3_test_grammar.py | 546 class Squares: class 559 for x in Squares(10): n = n+x
|
D | py2_test_grammar.py | 602 class Squares: class 615 for x in Squares(10): n = n+x
|
/external/icu/icu4c/source/data/unidata/ |
D | ppucd.txt | 12534 # Squares 12544 # Squares
|