Skip to content

Commit f6786ff

Browse files
committed
a bit more testing for quadratic function
1 parent 8eb3a50 commit f6786ff

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Solutions/Session08/test_quadratic.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ def test_evaluate():
1717
q = Quadratic(1,2,3)
1818

1919
assert q(3) == 9 + 6 + 3
20+
assert q(0) == 3
21+
22+
23+
def test_evaluate2():
24+
q = Quadratic(2,1,-3)
25+
26+
assert q(0) == -3
27+
assert q(1) == 2 + 1 - 3
28+
assert q(-2) == 8 - 2 - 3
2029

2130

2231
def test_bad_input():

lightning_schedule.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ week 8: Arielle R Simmons
2727
week 8: Eric W Westman
2828
week 8: Ryan J Albright
2929
week 9: Alexandra N Kazakova ** needs to be re-sheduled **
30-
week 9: Erik Ivan Lottsfeldt
30+
week 9: Erik Ivan Lottsfeldt ** dropped**
3131
week 9: Louis John Ascoli
3232
week 9: Ralph P Brand
3333
week 10: Bryan L Davis

0 commit comments

Comments
 (0)