Source code for tests.test_skeleton
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pytest
from clusteror.skeleton import fib
__author__ = "Fei Zhan"
__copyright__ = "Fei Zhan"
__license__ = "none"
[docs]def test_fib():
assert fib(1) == 1
assert fib(2) == 1
assert fib(7) == 13
with pytest.raises(AssertionError):
fib(-10)