(self)
Test that the words we generate are Lyndon words.
Test that the words we generate are Lyndon words.
Test that the words we generate are Lyndon words .
def testIsLyndon(self):
        """Test that the words we generate are Lyndon words."""
        for s in range(2,7):
            for n in range(2,6):
                for w in LengthLimitedLyndonWords(s,n):
                    self.assertEqual(isLyndonWord(w), True)
def testIsLyndon ( self ) : for s in range ( 2 , 7 ) : for n in range ( 2 , 6 ) : for w in LengthLimitedLyndonWords ( s , n ) : self . assertEqual ( isLyndonWord ( w ) , True )