[Zope-CVS] CVS: Packages/pypes/pypes/tests - test_order.py:1.2
Casey Duncan
casey at zope.com
Mon Nov 29 02:02:35 EST 2004
Update of /cvs-repository/Packages/pypes/pypes/tests
In directory cvs.zope.org:/tmp/cvs-serv29709/tests
Modified Files:
test_order.py
Log Message:
refactor multi-expression sort algorithm, it now seems to return correct results and should hopefully be easier to follow.
=== Packages/pypes/pypes/tests/test_order.py 1.1 => 1.2 ===
--- Packages/pypes/pypes/tests/test_order.py:1.1 Fri Aug 20 16:21:24 2004
+++ Packages/pypes/pypes/tests/test_order.py Mon Nov 29 02:02:35 2004
@@ -83,7 +83,6 @@
nohash = ['f', ['b'], ['c', 'd'], ['t', 'y'], 't']
sorted = Sort(nohash, Asc('x'))
self.assertEqual(list(sorted), sortem(nohash, lambda x:x))
- import pdb; pdb.set_trace()
sorted = Sort(nohash, Desc('len(x)'), Asc('x'))
expected = sortem(sortem(nohash, lambda x: x), lambda x: len(x), True)
self.assertEqual(list(sorted), sortem(nohash, lambda x:x))
More information about the Zope-CVS
mailing list