Home
last modified time | relevance | path

Searched refs:countOf (Results 1 – 10 of 10) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_iter.py626 from operator import countOf
627 self.assertEqual(countOf([1,2,2,3,2,5], 2), 3)
628 self.assertEqual(countOf((1,2,2,3,2,5), 2), 3)
629 self.assertEqual(countOf("122325", "2"), 3)
630 self.assertEqual(countOf("122325", "6"), 0)
632 self.assertRaises(TypeError, countOf, 42, 1)
633 self.assertRaises(TypeError, countOf, countOf, countOf)
637 self.assertEqual(countOf(d, k), 1)
638 self.assertEqual(countOf(d.itervalues(), 3), 3)
639 self.assertEqual(countOf(d.itervalues(), 2j), 1)
[all …]
Dtest_operator.py129 self.assertRaises(TypeError, operator.countOf)
130 self.assertRaises(TypeError, operator.countOf, None, None)
131 self.assertTrue(operator.countOf([1, 2, 1, 3, 1, 4], 3) == 1)
132 self.assertTrue(operator.countOf([1, 2, 1, 3, 1, 4], 5) == 0)
/external/python/cpython3/Lib/test/
Dtest_iter.py673 from operator import countOf
674 self.assertEqual(countOf([1,2,2,3,2,5], 2), 3)
675 self.assertEqual(countOf((1,2,2,3,2,5), 2), 3)
676 self.assertEqual(countOf("122325", "2"), 3)
677 self.assertEqual(countOf("122325", "6"), 0)
679 self.assertRaises(TypeError, countOf, 42, 1)
680 self.assertRaises(TypeError, countOf, countOf, countOf)
684 self.assertEqual(countOf(d, k), 1)
685 self.assertEqual(countOf(d.values(), 3), 3)
686 self.assertEqual(countOf(d.values(), 2j), 1)
[all …]
Dtest_operator.py143 self.assertRaises(TypeError, operator.countOf)
144 self.assertRaises(TypeError, operator.countOf, None, None)
145 self.assertEqual(operator.countOf([1, 2, 1, 3, 1, 4], 3), 1)
146 self.assertEqual(operator.countOf([1, 2, 1, 3, 1, 4], 5), 0)
/external/python/cpython2/Modules/
Doperator.c128 spamn2(countOf , PySequence_Count) in spami()
380 spam1(countOf,
/external/python/cpython3/Lib/
Doperator.py157 def countOf(a, b): function
/external/python/cpython3/Doc/library/
Doperator.rst213 .. function:: countOf(a, b)
/external/python/cpython2/Doc/library/
Doperator.rst227 .. function:: countOf(a, b)
/external/python/cpython2/Misc/
DHISTORY7347 operator.countOf() (PySequence_Count() in C API)
/external/python/cpython3/Misc/
DHISTORY24726 operator.countOf() (PySequence_Count() in C API)