(self)
Check that the revlex generators' outputs are in revlex order.
Check that the revlex generators' outputs are in revlex order.
Check that the revlex generators outputs are in revlex order .
def testRevLex(self):
        """Check that the revlex generators' outputs are in revlex order."""
        for n in range(len(self.counts)):
            last = [n+1]
            for p in mckay(n):
                self.assert_(last > p)
                last = list(p)  # make less-mutable copy
            last = [n+1]
            for p in revlex_partitions(n):
                self.assert_(last > p)
                last = list(p)
def testRevLex ( self ) : for n in range ( len ( self . counts ) ) : last = [ n + 1 ] for p in mckay ( n ) : self . assert_ ( last > p ) last = list ( p ) # make less-mutable copy last = [ n + 1 ] for p in revlex_partitions ( n ) : self . assert_ ( last > p ) last = list ( p )