Files
30-seconds-of-code/test/palindrome/palindrome.test.py
Rohit Tanwar e880709a0d website
2018-02-17 19:36:05 +05:30

6 lines
277 B
Python

import types,functools
from pytape import test
from palindrome import palindrome
def palindrome_test(t):
t.true(isinstance(palindrome, (types.BuiltinFunctionType, types.FunctionType, functools.partial)),'palindrome is a function')
test('Testing palindrome',palindrome_test)