We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9525911 commit 78e868fCopy full SHA for 78e868f
Lib/test/test_collections.py
@@ -2423,6 +2423,8 @@ def test_eq(self):
2423
2424
def test_le(self):
2425
self.assertTrue(Counter(a=3, b=2, c=0) <= Counter('ababa'))
2426
+ self.assertTrue(Counter() <= Counter(c=1))
2427
+ self.assertFalse(Counter() <= Counter(c=-1))
2428
self.assertFalse(Counter(a=3, b=2) <= Counter('babab'))
2429
2430
def test_lt(self):
@@ -2431,6 +2433,8 @@ def test_lt(self):
2431
2433
2432
2434
def test_ge(self):
2435
self.assertTrue(Counter(a=2, b=1, c=0) >= Counter('aab'))
2436
+ self.assertTrue(Counter() >= Counter(c=-1))
2437
+ self.assertFalse(Counter() >= Counter(c=1))
2438
self.assertFalse(Counter(a=3, b=2, c=0) >= Counter('aabd'))
2439
2440
def test_gt(self):
0 commit comments