Skip to content
Snippets Groups Projects
test_skeleton.py 311 B
# -*- coding: utf-8 -*-

import pytest
from pystencils_autodiff.skeleton import fib

__author__ = "Stephan Seitz"
__copyright__ = "Stephan Seitz"
__license__ = "mit"


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