def test_create_sequence_using_empty(self): self.assertFalse(sources.empty().any_matches(lambda k: k % 2 == 0))
def test_create_sequence_using_empty(self): self.assertIsNone(sources.empty().max())
def test_to_list_with_empty_sequence(self): self.assertDictEqual( sources.empty().group_by(lambda k: k, Grouper.to_list()), {})
def test_averaging_with_empty_sequence(self): self.assertDictEqual( sources.empty().group_by(lambda k: k, Grouper.averaging(lambda k: k)), {})
def test_statisticizing_with_empty_sequence(self): self.assertDictEqual( sources.empty().group_by(lambda k: k, Grouper.statisticizing(lambda k: k)), {})
def test_create_sequence_using_empty(self): self.assertDictEqual(sources.empty().group_by(lambda k: k), {})
def test_create_sequence_using_empty(self): self.assertListEqual(sources.empty().to_list(), [])
def test_create_sequence_using_empty(self): self.assertEqual(sources.empty().join(', '), '')
def test_create_sequence_using_empty(self): self.assertEqual(sources.empty().sum(), 0)
def test_create_sequence_using_empty(self): self.assertDictEqual( sources.empty().to_dictionary(lambda k: k, lambda k: k / 2), {})
def test_create_sequence_using_empty(self): self.assertListEqual(forEachOpHelper(sources.empty()), [])