Commit 1aa70c6
Add guard against division by zero in test
- Add assertion to check len(scores) > 0 before calculating average
- Prevents potential ZeroDivisionError if no test cases are run
Co-authored-by: gkorland <753206+gkorland@users.noreply.github.com>1 parent d80ada4 commit 1aa70c6
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| 204 | + | |
204 | 205 | | |
205 | 206 | | |
206 | 207 | | |
0 commit comments