Skip to content

Commit

Permalink
Update testing_code.md (#198)
Browse files Browse the repository at this point in the history
Corrected a small typo.
  • Loading branch information
glenn-christmas authored Sep 2, 2024
1 parent 9da300d commit b9b4870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/testing_code.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ but you should ensure that good modular code practices are followed to separate

When we implement new logic in code, tests are required to assure us that the code works as expected.

To make sure that your code work as expected, you should is to write tests for each individual unit in your code.
To make sure that your code work as expected, you should aim to write tests for each individual unit in your code.
A unit is the smallest modular piece of logic in the code - a function or method.

Unit tests should cover realistic use cases for your function, such as:
Expand Down

0 comments on commit b9b4870

Please sign in to comment.