def test_countif_strictly_superior(self): assert 3 == countif([7, 25, 13, 25], '>10')
def test_countif_with_string_equality(self): self.assertEqual(countif([7, 'e', 13, 'e'], 'e'), 2)
def test_countif(value, criteria, result): assert countif(value, criteria) == result
def test_countif_strictly_inferior(self): self.assertEqual(countif([7, 25, 13, 25], '<10'), 1)
def test_countif_inferior(self): self.assertEqual(countif([7, 10, 13, 25], '<=10'), 2)
def test_countif_with_string_inequality(self): assert 1 == countif([7, 'e', 13, 'f'], '>e')
def test_argument_validity(self): with self.assertRaises(TypeError): countif(['e', 1], '>=1')
def test_countif_superior(self): self.assertEqual(countif([7, 10, 13, 25], '>=10'), 3)
def test_countif_strictly_superior(self): self.assertEqual(countif([7, 25, 13, 25], '>10'), 3)
def test_countif_regular(self): assert 2 == countif(((7, 25, 13, 25), ), 25)
def test_countif_different(self): assert 3 == countif(((7, 10, 13, 25), ), '<>10')
def test_countif_superior(self): assert 3 == countif([7, 10, 13, 25], '>=10')
def test_countif_different(self): self.assertEqual(countif([7, 10, 13, 25], '<>10'), 3)
def test_countif_different(self): assert 3 == countif([7, 10, 13, 25], '<>10')
def test_countif_inferior(self): assert 2 == countif(((7, 10, 13, 25), ), '<=10')
def test_countif_regular(self): self.assertEqual(countif([7, 25, 13, 25], 25), 2)
def test_countif_strictly_superior(self): assert 3 == countif(((7, 25, 13, 25), ), '>10')
def test_countif_strictly_inferior(self): assert 1 == countif(((7, 25, 13, 25), ), '<10')
def test_countif_superior(self): assert 3 == countif(((7, 10, 13, 25), ), '>=10')
def test_countif(result, criteria, values): assert countif(values, criteria) == result
def test_countif_strictly_inferior(self): assert 1 == countif([7, 25, 13, 25], '<10')
def test_countif_with_string_equality(self): assert 2 == countif(((7, 'e', 13, 'e'), ), 'e')
def test_countif_inferior(self): assert 2 == countif([7, 10, 13, 25], '<=10')
def test_countif_with_string_inequality(self): assert 1 == countif(((7, 'e', 13, 'f'), ), '>e')
def test_countif_with_string_equality(self): assert 2 == countif([7, 'e', 13, 'e'], 'e')
def test_countif_regular(self): assert 2 == countif([7, 25, 13, 25], 25)