aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_skeleton.py
blob: ec2ef23ceee414244a43297db126adf9bdfe6233 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import pytest
from git_deps.skeleton import fib

__author__ = "Adam Spiers"
__copyright__ = "Adam Spiers"
__license__ = "none"


def test_fib():
    assert fib(1) == 1
    assert fib(2) == 1
    assert fib(7) == 13
    with pytest.raises(AssertionError):
        fib(-10)