Esempio n. 1
0
 def test_create_sequence_using_empty(self):
     self.assertFalse(sources.empty().any_matches(lambda k: k % 2 == 0))
Esempio n. 2
0
 def test_create_sequence_using_empty(self):
     self.assertIsNone(sources.empty().max())
Esempio n. 3
0
 def test_to_list_with_empty_sequence(self):
     self.assertDictEqual(
         sources.empty().group_by(lambda k: k, Grouper.to_list()), {})
Esempio n. 4
0
 def test_averaging_with_empty_sequence(self):
     self.assertDictEqual(
         sources.empty().group_by(lambda k: k,
                                  Grouper.averaging(lambda k: k)), {})
Esempio n. 5
0
 def test_statisticizing_with_empty_sequence(self):
     self.assertDictEqual(
         sources.empty().group_by(lambda k: k,
                                  Grouper.statisticizing(lambda k: k)), {})
Esempio n. 6
0
 def test_create_sequence_using_empty(self):
     self.assertDictEqual(sources.empty().group_by(lambda k: k), {})
Esempio n. 7
0
 def test_create_sequence_using_empty(self):
     self.assertListEqual(sources.empty().to_list(), [])
Esempio n. 8
0
 def test_create_sequence_using_empty(self):
     self.assertEqual(sources.empty().join(', '), '')
Esempio n. 9
0
 def test_create_sequence_using_empty(self):
     self.assertEqual(sources.empty().sum(), 0)
Esempio n. 10
0
 def test_create_sequence_using_empty(self):
     self.assertDictEqual(
         sources.empty().to_dictionary(lambda k: k, lambda k: k / 2), {})
Esempio n. 11
0
 def test_create_sequence_using_empty(self):
     self.assertListEqual(forEachOpHelper(sources.empty()), [])