I've got some rejects:

application de trac_8490_square_free-vd.patch
unable to find 'sage/combinat/words/finite_word.py' for patching
1 out of 1 hunks FAILED -- saving rejects to file 
sage/combinat/words/finite_word.py.r
l'application du patch a échoué, impossible de continuer (essayez avec -v)
patch failed, rejects left in working dir

I guarded it. Please update the patch.

Cheers,

Florent

--- finite_word.py
+++ finite_word.py
@@ -4951,12 +4951,22 @@
             False
             sage: W().is_square_free()
             True
+
+        TESTS::
+
+            sage: W = Words('123')
+            sage: W('11').is_square_free() # trac 8490
+            False
+            sage: W('211').is_square_free() # trac 8490
+            False
+            sage: W('3211').is_square_free() # trac 8490
+            False
         """
         l = self.length()
         if l < 2:
             return True
         suff = self
-        for i in xrange(0, l - 2):
+        for i in xrange(0, l-1):
             for ll in xrange(2, l-i+1, 2):
                 if suff[:ll].is_square():
                     return False

                     
Florent

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to sage-combinat-de...@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.

Reply via email to