(self)
Test that we count Lyndon words correctly.
Test that we count Lyndon words correctly.
Test that we count Lyndon words correctly .
def testCount(self):
        """Test that we count Lyndon words correctly."""
        for s in range(2,7):
            for n in range(1,6):
                self.assertEqual(CountLyndonWords(s,n),
                    len(list(LyndonWordsWithLength(s,n))))
def testCount ( self ) : for s in range ( 2 , 7 ) : for n in range ( 1 , 6 ) : self . assertEqual ( CountLyndonWords ( s , n ) , len ( list ( LyndonWordsWithLength ( s , n ) ) ) )