Home
last modified time | relevance | path

Searched refs:Squares (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_builtin.py17 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 …]
Dtest_functools.py452 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)
Dtest_grammar.py626 class Squares: class
639 for x in Squares(10): n = n+x
/external/python/cpython2/Lib/lib2to3/tests/data/
Dpy3_test_grammar.py546 class Squares: class
559 for x in Squares(10): n = n+x
Dpy2_test_grammar.py602 class Squares: class
615 for x in Squares(10): n = n+x
/external/icu/icu4c/source/data/unidata/
Dppucd.txt12534 # Squares
12544 # Squares