(self)
Test that words of length n-1 are a subsequence of length n.
Test that words of length n-1 are a subsequence of length n.
Test that words of length n - 1 are a subsequence of length n .
def testSubsequence(self):
        """Test that words of length n-1 are a subsequence of length n."""
        for s in range(2,7):
            for n in range(2,6):
                smaller = LengthLimitedLyndonWords(s,n-1)
                for x in LengthLimitedLyndonWords(s,n):
                    if len(x) < n:
                        self.assertEqual(x,smaller.next())
def testSubsequence ( self ) : for s in range ( 2 , 7 ) : for n in range ( 2 , 6 ) : smaller = LengthLimitedLyndonWords ( s , n - 1 ) for x in LengthLimitedLyndonWords ( s , n ) : if len ( x ) < n : self . assertEqual ( x , smaller . next ( ) )