(self)
Test that we generate Lyndon words in lexicographic order.
Test that we generate Lyndon words in lexicographic order.
Test that we generate Lyndon words in lexicographic order .
def testOrder(self):
        """Test that we generate Lyndon words in lexicographic order."""
        for s in range(2,7):
            for n in range(1,6):
                prev = []
                for x in LengthLimitedLyndonWords(s,n):
                    self.assert_(prev < x)
                    prev = list(x)
def testOrder ( self ) : for s in range ( 2 , 7 ) : for n in range ( 1 , 6 ) : prev = [ ] for x in LengthLimitedLyndonWords ( s , n ) : self . assert_ ( prev < x ) prev = list ( x )