Files
30-seconds-of-code/test/bubble_sort/bubble_sort.test.py
2018-10-30 19:00:16 +07:00

16 lines
404 B
Python

import types
import functools
from pytape import test
from bubble_sort import bubble_sort
def bubble_sort_test(t):
t.true(
isinstance(bubble_sort, (types.BuiltinFunctionType, types.FunctionType,
functools.partial)),
'<util.read_snippets.<locals>.snippet object at 0x7fc8ea4c6978> is a function'
)
test('Testing bubble_sort', bubble_sort_test)