From fd432f3c4d8769e192f6c391ee7a064530450cf2 Mon Sep 17 00:00:00 2001 From: Matt Graham Date: Tue, 24 Jun 2025 16:46:40 +0100 Subject: [PATCH] Correct inconsistent function name usage in code refactoring exercise --- episodes/34-code-refactoring.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/episodes/34-code-refactoring.md b/episodes/34-code-refactoring.md index 941615adb..9f8ef0bdf 100644 --- a/episodes/34-code-refactoring.md +++ b/episodes/34-code-refactoring.md @@ -282,7 +282,7 @@ i.e. their tests are: ::: challenge ## Exercise: Testing a Pure Function -Add tests for `compute_standard_deviation_by_data()` that check for situations +Add tests for `compute_standard_deviation_by_day()` that check for situations when there is only one file with multiple rows, multiple files with one row, and any other cases you can think of that should be tested. @@ -299,9 +299,9 @@ with more inputs and expected outputs: ], ids=['Two patients in same file', 'Two patients in different files', 'Two identical patients in two different files']) def test_compute_standard_deviation_by_day(data, expected_output): - from inflammation.compute_data import compute_standard_deviation_by_data + from inflammation.compute_data import compute_standard_deviation_by_day - result = compute_standard_deviation_by_data(data) + result = compute_standard_deviation_by_day(data) npt.assert_array_almost_equal(result, expected_output) ```