コード例 #1
0
 def test_countif_strictly_superior(self):
     assert 3 == countif([7, 25, 13, 25], '>10')
コード例 #2
0
ファイル: excellib.py プロジェクト: omalleyt12/pycel-1
 def test_countif_with_string_equality(self):
     self.assertEqual(countif([7, 'e', 13, 'e'], 'e'), 2)
コード例 #3
0
def test_countif(value, criteria, result):
    assert countif(value, criteria) == result
コード例 #4
0
ファイル: excellib.py プロジェクト: omalleyt12/pycel-1
 def test_countif_strictly_inferior(self):
     self.assertEqual(countif([7, 25, 13, 25], '<10'), 1)
コード例 #5
0
ファイル: excellib.py プロジェクト: omalleyt12/pycel-1
 def test_countif_inferior(self):
     self.assertEqual(countif([7, 10, 13, 25], '<=10'), 2)
コード例 #6
0
 def test_countif_with_string_inequality(self):
     assert 1 == countif([7, 'e', 13, 'f'], '>e')
コード例 #7
0
ファイル: excellib.py プロジェクト: omalleyt12/pycel-1
 def test_argument_validity(self):
     with self.assertRaises(TypeError):
         countif(['e', 1], '>=1')
コード例 #8
0
ファイル: excellib.py プロジェクト: SergeBredin/pycel
 def test_countif_superior(self):
     self.assertEqual(countif([7, 10, 13, 25], '>=10'), 3)
コード例 #9
0
ファイル: excellib.py プロジェクト: SergeBredin/pycel
 def test_countif_inferior(self):
     self.assertEqual(countif([7, 10, 13, 25], '<=10'), 2)
コード例 #10
0
ファイル: excellib.py プロジェクト: SergeBredin/pycel
 def test_countif_strictly_superior(self):
     self.assertEqual(countif([7, 25, 13, 25], '>10'), 3)
コード例 #11
0
ファイル: excellib.py プロジェクト: SergeBredin/pycel
 def test_countif_strictly_inferior(self):
     self.assertEqual(countif([7, 25, 13, 25], '<10'), 1)
コード例 #12
0
ファイル: excellib.py プロジェクト: SergeBredin/pycel
 def test_argument_validity(self):
     with self.assertRaises(TypeError):
         countif(['e', 1], '>=1')
コード例 #13
0
ファイル: test_excellib.py プロジェクト: asitang/pycel
 def test_countif_regular(self):
     assert 2 == countif(((7, 25, 13, 25), ), 25)
コード例 #14
0
ファイル: test_excellib.py プロジェクト: asitang/pycel
 def test_countif_different(self):
     assert 3 == countif(((7, 10, 13, 25), ), '<>10')
コード例 #15
0
 def test_countif_superior(self):
     assert 3 == countif([7, 10, 13, 25], '>=10')
コード例 #16
0
ファイル: excellib.py プロジェクト: SergeBredin/pycel
 def test_countif_different(self):
     self.assertEqual(countif([7, 10, 13, 25], '<>10'), 3)
コード例 #17
0
 def test_countif_different(self):
     assert 3 == countif([7, 10, 13, 25], '<>10')
コード例 #18
0
ファイル: excellib.py プロジェクト: SergeBredin/pycel
 def test_countif_with_string_equality(self):
     self.assertEqual(countif([7, 'e', 13, 'e'], 'e'), 2)
コード例 #19
0
ファイル: test_excellib.py プロジェクト: asitang/pycel
 def test_countif_inferior(self):
     assert 2 == countif(((7, 10, 13, 25), ), '<=10')
コード例 #20
0
ファイル: excellib.py プロジェクト: SergeBredin/pycel
 def test_countif_regular(self):
     self.assertEqual(countif([7, 25, 13, 25], 25), 2)
コード例 #21
0
ファイル: excellib.py プロジェクト: omalleyt12/pycel-1
 def test_countif_strictly_superior(self):
     self.assertEqual(countif([7, 25, 13, 25], '>10'), 3)
コード例 #22
0
ファイル: test_excellib.py プロジェクト: dgorissen/pycel
 def test_countif_strictly_superior(self):
     assert 3 == countif(((7, 25, 13, 25), ), '>10')
コード例 #23
0
ファイル: excellib.py プロジェクト: omalleyt12/pycel-1
 def test_countif_superior(self):
     self.assertEqual(countif([7, 10, 13, 25], '>=10'), 3)
コード例 #24
0
ファイル: test_excellib.py プロジェクト: dgorissen/pycel
 def test_countif_strictly_inferior(self):
     assert 1 == countif(((7, 25, 13, 25), ), '<10')
コード例 #25
0
ファイル: excellib.py プロジェクト: omalleyt12/pycel-1
 def test_countif_different(self):
     self.assertEqual(countif([7, 10, 13, 25], '<>10'), 3)
コード例 #26
0
ファイル: test_excellib.py プロジェクト: dgorissen/pycel
 def test_countif_superior(self):
     assert 3 == countif(((7, 10, 13, 25), ), '>=10')
コード例 #27
0
ファイル: excellib.py プロジェクト: omalleyt12/pycel-1
 def test_countif_regular(self):
     self.assertEqual(countif([7, 25, 13, 25], 25), 2)
コード例 #28
0
ファイル: test_excellib.py プロジェクト: dgorissen/pycel
 def test_countif_inferior(self):
     assert 2 == countif(((7, 10, 13, 25), ), '<=10')
コード例 #29
0
 def test_countif(result, criteria, values):
     assert countif(values, criteria) == result
コード例 #30
0
ファイル: test_excellib.py プロジェクト: dgorissen/pycel
 def test_countif_different(self):
     assert 3 == countif(((7, 10, 13, 25), ), '<>10')
コード例 #31
0
 def test_countif_strictly_inferior(self):
     assert 1 == countif([7, 25, 13, 25], '<10')
コード例 #32
0
ファイル: test_excellib.py プロジェクト: dgorissen/pycel
 def test_countif_with_string_equality(self):
     assert 2 == countif(((7, 'e', 13, 'e'), ), 'e')
コード例 #33
0
 def test_countif_inferior(self):
     assert 2 == countif([7, 10, 13, 25], '<=10')
コード例 #34
0
ファイル: test_excellib.py プロジェクト: dgorissen/pycel
 def test_countif_with_string_inequality(self):
     assert 1 == countif(((7, 'e', 13, 'f'), ), '>e')
コード例 #35
0
 def test_countif_with_string_equality(self):
     assert 2 == countif([7, 'e', 13, 'e'], 'e')
コード例 #36
0
ファイル: test_excellib.py プロジェクト: dgorissen/pycel
 def test_countif_regular(self):
     assert 2 == countif(((7, 25, 13, 25), ), 25)
コード例 #37
0
 def test_countif_regular(self):
     assert 2 == countif([7, 25, 13, 25], 25)
コード例 #38
0
ファイル: test_excellib.py プロジェクト: asitang/pycel
 def test_countif_superior(self):
     assert 3 == countif(((7, 10, 13, 25), ), '>=10')