Skip to content

Commit 85b89cc

Browse files
committed
fix: text style
1 parent 5c2a82f commit 85b89cc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

content/chapter-3/304.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ Here are examples of bad leaf functions and our reasons for why they are bad:
4747

4848
* _Determine the best movie of all time._ -- This is too vague. Best movie by what definition? What movies should it consider? A better version of this might be a function that determines the highest rated movie by users given at least a minimum number of ratings. This function would likely be part of a larger program where the function would have, as input, data from a movie database (say IMDB) and minimum number of user ratings. The output of the function would be the highest rated movie that has at least as many ratings as specified.
4949

50-
* _Play_ _Call_ _of_ _Duty_. -- This might be the `main` function in the large code base for the game _Call of Duty_, but it is definitely not a leaf function.
50+
* _Play Call of Duty_. -- This might be the `main` function in the large code base for the game _Call of Duty_, but it is definitely not a leaf function.

content/chapter-3/306.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ We’re not done testing, though. When testing a function, you want to test it i
8888

8989
How do we test this function in a different way? We’re looking for inputs that are somehow a different _category_ of input. One not-so-good test right now would be to say, “what if our stock went from $15 to $18, instead of $15 to $17?”. This is pretty much the same test as before, and chances are that it will work just fine.
9090

91-
A good idea is to test what happens when the stock actually _loses_ _money_. We expect to get a negative return value in this case. And it appears that our function works just fine with this category of test. Here’s our function call and the output that is returned to us:
91+
A good idea is to test what happens when the stock actually _loses money_. We expect to get a negative return value in this case. And it appears that our function works just fine with this category of test. Here’s our function call and the output that is returned to us:
9292

9393
```
9494
>>> money_made(10, 17, 15)

0 commit comments

Comments
 (0)