Skip to content

Commit e6c0e11

Browse files
authored
Merge pull request #2 from mstimberg/patch-1
Fix typos in Unit Tests section
2 parents 4ba5c96 + 4a8f571 commit e6c0e11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

04-units.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ minutes: 10
1313
> - Understand how test fixtures can help write tests.
1414
1515
Unit tests are so called because they exercise the functionality of the code by
16-
interrogating individual functions and methods. Fuctions and methods can often
17-
be considered the atomic units of software because they are indivisble.
16+
interrogating individual functions and methods. Functions and methods can often
17+
be considered the atomic units of software because they are indivisible.
1818
However, what is considered to be the smallest code _unit_ is subjective. The
1919
body of a function can be long are short, and shorter functions are arguably
2020
more unit-like than long ones.
@@ -27,7 +27,7 @@ practically (a function is self-contained and well defined), then it is a unit.
2727
> ## Functions are Like Paragraphs {.callout}
2828
>
2929
> Recall that humans can only hold a few ideas in our heads at once. Paragraphs
30-
> in books, for example, become unwieldy after a few lines. Functions, generaly,
30+
> in books, for example, become unwieldy after a few lines. Functions, generally,
3131
> shouldn't be longer than paragraphs.
3232
> Robert C. Martin, the author of "Clean Code" said : "The first rule of
3333
> functions is that _they should be small_. The second rule of functions is that

0 commit comments

Comments
 (0)