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

6 lines
228 B
Python

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