projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
705cd06
)
Fix typo in method name. The LT class implemented less than. The LE class
author
Neal Norwitz
<nnorwitz@gmail.com>
Fri, 13 Jun 2008 06:03:25 +0000
(06:03 +0000)
committer
Neal Norwitz
<nnorwitz@gmail.com>
Fri, 13 Jun 2008 06:03:25 +0000
(06:03 +0000)
should implement less than or equal to (as the code does).
Lib/test/test_heapq.py
patch
|
blob
|
history
diff --git
a/Lib/test/test_heapq.py
b/Lib/test/test_heapq.py
index 6f05e171fa85533882da4360458270409fd0d3eb..f91d86db0d20d26b9ee0c751fab48453f9c6b4f8 100644
(file)
--- a/
Lib/test/test_heapq.py
+++ b/
Lib/test/test_heapq.py
@@
-210,7
+210,7
@@
class TestHeapC(TestHeap):
class LE:
def __init__(self, x):
self.x = x
- def __l
t
__(self, other):
+ def __l
e
__(self, other):
return self.x >= other.x
data = [random.random() for i in range(100)]
target = sorted(data, reverse=True)