File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -282,7 +282,7 @@ i.e. their tests are:
282
282
::: challenge
283
283
## Exercise: Testing a Pure Function
284
284
285
- Add tests for ` compute_standard_deviation_by_data ()` that check for situations
285
+ Add tests for ` compute_standard_deviation_by_day ()` that check for situations
286
286
when there is only one file with multiple rows,
287
287
multiple files with one row, and any other cases you can think of that should be tested.
288
288
@@ -299,9 +299,9 @@ with more inputs and expected outputs:
299
299
],
300
300
ids = [' Two patients in same file' , ' Two patients in different files' , ' Two identical patients in two different files' ])
301
301
def test_compute_standard_deviation_by_day (data , expected_output ):
302
- from inflammation.compute_data import compute_standard_deviation_by_data
302
+ from inflammation.compute_data import compute_standard_deviation_by_day
303
303
304
- result = compute_standard_deviation_by_data (data)
304
+ result = compute_standard_deviation_by_day (data)
305
305
npt.assert_array_almost_equal(result, expected_output)
306
306
```
307
307
Original file line number Diff line number Diff line change 25
25
"episodes/31-software-requirements.md" "adf1d73eb1d6449a95378b3f931327e2" "site/built/31-software-requirements.md" "2025-02-25"
26
26
"episodes/32-software-architecture-design.md" "a5de51c1b48bd4de29e184060108dcc6" "site/built/32-software-architecture-design.md" "2025-05-27"
27
27
"episodes/33-code-decoupling-abstractions.md" "b8985feb5faae7512cfa3d670b23dd40" "site/built/33-code-decoupling-abstractions.md" "2025-03-10"
28
- "episodes/34-code-refactoring.md" "ecfc3e80e4e9a453a0a10069d0d4e894 " "site/built/34-code-refactoring.md" "2025-05-27 "
28
+ "episodes/34-code-refactoring.md" "c25645c2e0efd8519e67080ab422d1df " "site/built/34-code-refactoring.md" "2025-06-24 "
29
29
"episodes/35-software-architecture-revisited.md" "8f92fb912d61d3aded15f51020699a14" "site/built/35-software-architecture-revisited.md" "2024-12-06"
30
30
"episodes/40-section4-intro.md" "d8aa3c327409db1b14826b7619287c45" "site/built/40-section4-intro.md" "2024-12-06"
31
31
"episodes/41-code-review.md" "e86600e42548b6d652fb9b43450222fc" "site/built/41-code-review.md" "2025-06-19"
You can’t perform that action at this time.
0 commit comments