[pypy-svn] r51208 - pypy/dist/pypy/tool/algo/test

xoraxax at codespeak.net xoraxax at codespeak.net
Sat Feb 2 13:37:35 CET 2008


Author: xoraxax
Date: Sat Feb  2 13:37:34 2008
New Revision: 51208

Modified:
   pypy/dist/pypy/tool/algo/test/test_unionfind.py
Log:
Make the assert in the union find test stricter.

Modified: pypy/dist/pypy/tool/algo/test/test_unionfind.py
==============================================================================
--- pypy/dist/pypy/tool/algo/test/test_unionfind.py	(original)
+++ pypy/dist/pypy/tool/algo/test/test_unionfind.py	Sat Feb  2 13:37:34 2008
@@ -21,6 +21,6 @@
     uf.find(2)
     for i in xrange(2, 20, 2):
         uf.union(i, 2)
-    assert len(state) < 3
+    assert len(state) == 2 # we have exactly 2 partitions
 
 



More information about the Pypy-commit mailing list