def test_maximizes_output_two(self): actual = make_palindrome('11119111', 4) self.assertEqual(actual, '91199119')
def test_make_palindrome_fails_two(self): actual = make_palindrome('123456789123456789', 1) self.assertEqual(actual, -1)
def test_maximizes_output_one(self): actual = make_palindrome('092282', 3) self.assertEqual(actual, '992299')
def test_make_palindrome_eight(self): actual = make_palindrome('128392759430124', 8) self.assertTrue(actual != -1) self.assertTrue(is_palindrome(actual))
def test_make_palindrome_fails_one(self): actual = make_palindrome('0011', 1) self.assertEqual(actual, -1)
def test_make_palindrome_shift_three(self): actual = make_palindrome('092282', 3) self.assertTrue(actual != -1) self.assertTrue(is_palindrome(actual))
def test_make_palindrome_four(self): actual = make_palindrome('11119111', 4) self.assertTrue(actual != -1) self.assertTrue(is_palindrome(actual))
def test_maximizes_output_two(self): actual = make_palindrome('11119111', 4) self.assertEqual(actual, '91199119')
def test_make_palindrome_shift_one(self): actual = make_palindrome('3943', 1) self.assertTrue(actual != -1) self.assertTrue(is_palindrome(actual))
def test_make_palindrome_fails_two(self): actual = make_palindrome('123456789123456789', 1) self.assertEqual(actual, -1)
def test_maximizes_output_one(self): actual = make_palindrome('092282', 3) self.assertEqual(actual, '992299')
def test_make_palindrome_fails_one(self): actual = make_palindrome('0011', 1) self.assertEqual(actual, -1)
def test_make_palindrome_eight(self): actual = make_palindrome('128392759430124', 8) self.assertTrue(actual != -1) self.assertTrue(is_palindrome(actual))
def test_make_palindrome_four(self): actual = make_palindrome('11119111', 4) self.assertTrue(actual != -1) self.assertTrue(is_palindrome(actual))
def test_make_palindrome_shift_three(self): actual = make_palindrome('092282', 3) self.assertTrue(actual != -1) self.assertTrue(is_palindrome(actual))
def test_make_palindrome_shift_one(self): actual = make_palindrome('3943', 1) self.assertTrue(actual != -1) self.assertTrue(is_palindrome(actual))