Skip to content

Commit feab82b

Browse files
authored
Merge pull request #471 from carpentries-incubator/issue-466
Correct inconsistent function name usage in code refactoring exercise
2 parents 1dfe857 + fd432f3 commit feab82b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

episodes/34-code-refactoring.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ i.e. their tests are:
282282
::: challenge
283283
## Exercise: Testing a Pure Function
284284

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
286286
when there is only one file with multiple rows,
287287
multiple files with one row, and any other cases you can think of that should be tested.
288288

@@ -299,9 +299,9 @@ with more inputs and expected outputs:
299299
],
300300
ids=['Two patients in same file', 'Two patients in different files', 'Two identical patients in two different files'])
301301
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
303303

304-
result = compute_standard_deviation_by_data(data)
304+
result = compute_standard_deviation_by_day(data)
305305
npt.assert_array_almost_equal(result, expected_output)
306306
```
307307

0 commit comments

Comments
 (0)