Lines Matching refs:sum
925 self.assertEqual(sum(b), sum([x for x in range(10)]))
927 self.assertEqual(sum(x**2 for x in range(10)), sum([x**2 for x in range(10)]))
928 self.assertEqual(sum(x*x for x in range(10) if x%2), sum([x*x for x in range(10) if x%2]))
929 self.assertEqual(sum(x for x in (y for y in range(10))), sum([x for x in range(10)]))
930 self.assertEqual(sum(x for x in (y for y in (z for z in range(10)))), sum([x for x in range(10)]))
931 self.assertEqual(sum(x for x in [y for y in (z for z in range(10))]), sum([x for x in range(10)]))
932 self.assertEqual(sum(x for x in (y for y in (z for z in range(10) if True)) if True), sum([x for x in range(10)]))
933 self.assertEqual(sum(x for x in (y for y in (z for z in range(10) if True) if False) if True), 0)