deleted useless fibtest

This commit is contained in:
vky 2022-01-24 22:41:14 +01:00
parent 359b3dfd50
commit 91288e845f
2 changed files with 3 additions and 13 deletions

View File

@ -36,6 +36,6 @@ jobs:
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest fibtest.py
# - name: Test with pytest
# run: |
# pytest fibtest.py

View File

@ -1,10 +0,0 @@
import os
# testing Fibonacci number function
def fib(n: int) -> int:
return n if n < 2 else fib(n - 1) + fib(n - 2)
def test_fibonacci():
assert fib(int(os.environ["FIB_INPUT"])) == 55