cours_NSI/scripts/exo2_test.py

4 lines
190 B
Python
Raw Normal View History

2022-05-09 17:34:16 +02:00
b1 = ['somme([]) == None', 'somme([1]) == 1', 'somme([1,2]) == 3', 'somme([-1,1]) == 0']
b2 = ['sommation([1]) == 1', 'sommation([1,2]) == 3', 'sommation([-1,1]) == 0']
benchmark = (b1, b2)