Beispiel #1
0
 def test1(self):
     self.assertEqual(lib.count_evens([2, 1, 2, 3, 4]), 3)
Beispiel #2
0
 def test7(self):
     self.assertEqual(lib.count_evens([2]), 1)
Beispiel #3
0
 def test8(self):
     self.assertEqual(lib.count_evens([2, 5, 12]), 2)
Beispiel #4
0
 def test5(self):
     self.assertEqual(lib.count_evens([11, 9, 0, 1]), 1)
Beispiel #5
0
 def test6(self):
     self.assertEqual(lib.count_evens([2, 11, 9, 0]), 2)
Beispiel #6
0
 def test3(self):
     self.assertEqual(lib.count_evens([1, 3, 5]), 0)
Beispiel #7
0
 def test4(self):
     self.assertEqual(lib.count_evens([]), 0)
Beispiel #8
0
 def test1(self):
     self.assertEqual(lib.count_evens([2, 1, 2, 3, 4]), 3)
Beispiel #9
0
 def test2(self):
     self.assertEqual(lib.count_evens([2, 2, 0]), 3)
Beispiel #10
0
 def test7(self):
     self.assertEqual(lib.count_evens([2]), 1)
Beispiel #11
0
 def test8(self):
     self.assertEqual(lib.count_evens([2, 5, 12]), 2)
Beispiel #12
0
 def test6(self):
     self.assertEqual(lib.count_evens([2, 11, 9, 0]), 2)
Beispiel #13
0
 def test5(self):
     self.assertEqual(lib.count_evens([11, 9, 0, 1]), 1)
Beispiel #14
0
 def test4(self):
     self.assertEqual(lib.count_evens([]), 0)
Beispiel #15
0
 def test3(self):
     self.assertEqual(lib.count_evens([1, 3, 5]), 0)
Beispiel #16
0
 def test2(self):
     self.assertEqual(lib.count_evens([2, 2, 0]), 3)