Skip to content

Commit 33cf6a0

Browse files
authored
Merge pull request #108 from UoMResearchIT/107-correct-output-for-nan-test-in-defensive-programming
Update 04-defensive_programming.md
2 parents 80e2f6b + 5cf655c commit 33cf6a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

episodes/04-defensive_programming.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ check_sign(val)
256256
```
257257

258258
```output
259-
Value: nan is a number.
259+
Value: nan is negative.
260260
```
261261

262262
However numpy does provide the `isnan()` function for testing if a value is NaN. Add an assertion test using this which will raise and error if the value is NaN.

0 commit comments

Comments
 (0)