Author: j16sdiz
Date: 2009-03-31 15:47:58 +0000 (Tue, 31 Mar 2009)
New Revision: 26283

Modified:
   trunk/freenet/test/freenet/client/CodeTest.java
Log:
Test lessor, Test faster

Modified: trunk/freenet/test/freenet/client/CodeTest.java
===================================================================
--- trunk/freenet/test/freenet/client/CodeTest.java     2009-03-31 15:43:42 UTC 
(rev 26282)
+++ trunk/freenet/test/freenet/client/CodeTest.java     2009-03-31 15:47:58 UTC 
(rev 26283)
@@ -48,7 +48,7 @@
                int[] index = new int[KK];
 
                for (int i = 0; i < KK; i++)
-                       index[i] = KK - i;
+                       index[i] = lim - i - 1;
                encodeDecode(code, code2, index);
                encodeDecode(code2, code, index);
        }
@@ -75,7 +75,7 @@
                if (max_i0 + KK > lim)
                        max_i0 = lim - KK;
 
-               for (int s = 1; s <= max_i0; s++) {
+               for (int s = max_i0 - 2; s <= max_i0; s++) {
                        for (int i = 0; i < KK; i++)
                                index[i] = i + s;
                        encodeDecode(code, code2, index);

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to