Alle Dateien aus dem Pythonkurs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

20 lines
356 B

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')