/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_iter.py | 614 # Test iterators with operator.countOf (PySequence_Count).
616 from operator import countOf
617 self.assertEqual(countOf([1,2,2,3,2,5], 2), 3)
618 self.assertEqual(countOf((1,2,2,3,2,5), 2), 3)
619 self.assertEqual(countOf("122325", "2"), 3)
620 self.assertEqual(countOf("122325", "6"), 0)
622 self.assertRaises(TypeError, countOf, 42, 1)
623 self.assertRaises(TypeError, countOf, countOf, countOf)
[all...] |
test_operator.py | 129 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/cpython2/Lib/test/ |
test_iter.py | 624 # Test iterators with operator.countOf (PySequence_Count). 626 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) [all...] |
test_operator.py | 129 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/ |
test_iter.py | 671 # Test iterators with operator.countOf (PySequence_Count). 673 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) [all...] |
test_operator.py | 143 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/cpython3/Lib/ |
operator.py | 13 __all__ = ['abs', 'add', 'and_', 'attrgetter', 'concat', 'contains', 'countOf', 157 def countOf(a, b):
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/ |
operator.c | 128 spamn2(countOf , PySequence_Count)
380 spam1(countOf,
381 "countOf(a, b) -- Return the number of times b occurs in a.")
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/ |
operator.c | 128 spamn2(countOf , PySequence_Count)
254 spam1(countOf,
255 "countOf(a, b) -- Return the number of times b occurs in a.")
|
/external/python/cpython2/Modules/ |
operator.c | 128 spamn2(countOf , PySequence_Count) 380 spam1(countOf, 381 "countOf(a, b) -- Return the number of times b occurs in a.")
|
/external/guice/lib/build/ |
truth-0.36.jar | |