teil 16 Testing in progress.

This commit is contained in:
2023-05-05 10:03:11 +02:00
parent a2369f3863
commit 3598abe51f
6 changed files with 0 additions and 0 deletions

20
teil16/testfib.py Normal file
View File

@@ -0,0 +1,20 @@
from fib import fib
import logging
logging.basicConfig( format='%(asctime)-15s [%(levelname)s] %(funcName)s: %(message)s', level=logging.DEBUG)
logging.debug('Test startet')
result5 = fib(5)
result8 = fib(8)
if result5 == 8 and result8 == 34:
logging.info('Tests erfolgreich')
else:
logging.error('Tests fehlerhaft')
logging.debug('Testende')