(self)
Permutations of str "ABC" correct
Permutations of str "ABC" correct
Permutations of str ABC correct
def test_recursive2(self):
        """ Permutations of str "ABC" correct """
        A = "ABC"
        r = perm_recursive(A)
        self.assertEqual(set(tuple([tuple(l) for l in r])), set(self.perm_ABC))
        self.assertEqual(len(r), factorial(len(A)))
def test_recursive2 ( self ) : A = "ABC" r = perm_recursive ( A ) self . assertEqual ( set ( tuple ( [ tuple ( l ) for l in r ] ) ) , set ( self . perm_ABC ) ) self . assertEqual ( len ( r ) , factorial ( len ( A ) ) )