(self)
Check that the lex generator's outputs are in lex order.
Check that the lex generator's outputs are in lex order.
Check that the lex generator s outputs are in lex order .
def testLex(self):
        """Check that the lex generator's outputs are in lex order."""
        for n in range(1,len(self.counts)):
            last = []
            for p in lex_partitions(n):
                if not (last < p):
                    print("last:",last,"p:",p)
                self.assert_(last < p)
                last = list(p)
def testLex ( self ) : for n in range ( 1 , len ( self . counts ) ) : last = [ ] for p in lex_partitions ( n ) : if not ( last < p ) : print ( "last:" , last , "p:" , p ) self . assert_ ( last < p ) last = list ( p )