def test_sort_with_numbers(self): self.assertEqual(sources.descendingNumbers().max(), 4)
def test_sort_with_numbers(self): self.assertEqual(sources.descendingNumbers().average(), 2)
def test_sort_with_numbers(self): self.assertTrue(sources.descendingNumbers().any_matches(lambda k: k == 3))
def test_sort_with_numbers(self): self.assertListEqual(sources.descendingNumbers().to_list(), [4, 3, 2, 1, 0])
def test_sort_with_numbers(self): self.assertEqual(sources.descendingNumbers().join(', '), '4, 3, 2, 1, 0')
def test_sort_with_numbers(self): self.assertListEqual(sources.descendingNumbers().chunk(3).to_list(), [[4, 3, 2], [1, 0]])
def test_sort_with_numbers(self): self.assertListEqual(forEachOpHelper(sources.descendingNumbers()), [4, 3, 2, 1, 0])
def test_distinct_with_numbers(self): self.assertEqual(sources.descendingNumbers().count(), 5)