mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Strengthen one of the collections.Counter() tests
This commit is contained in:
parent
07573d7b24
commit
facd0a346f
1 changed files with 2 additions and 0 deletions
|
@ -1080,8 +1080,10 @@ class TestCounter(unittest.TestCase):
|
|||
# test fidelity to the pure python version
|
||||
c = CounterSubclassWithSetItem('abracadabra')
|
||||
self.assertTrue(c.called)
|
||||
self.assertEqual(dict(c), {'a': 5, 'b': 2, 'c': 1, 'd': 1, 'r':2 })
|
||||
c = CounterSubclassWithGet('abracadabra')
|
||||
self.assertTrue(c.called)
|
||||
self.assertEqual(dict(c), {'a': 5, 'b': 2, 'c': 1, 'd': 1, 'r':2 })
|
||||
|
||||
|
||||
################################################################################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue