Skip to content

Commit 32a2742

Browse files
committed
Part 4 edits.
1 parent a3d2801 commit 32a2742

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_parts/part4.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ title: Part 4 - Our First Tests (and Bugs)
44

55
We've got the ability to insert rows into our database and to print out all rows. Let's take a moment to test what we've got so far.
66

7-
I'm going to use [rspec](http://rspec.info/) to write my tests because I'm familiar with it.
7+
I'm going to use [rspec](http://rspec.info/) to write my tests because I'm familiar with it, and the syntax is fairly readable.
88

9-
I'll make a short helper to send a list of commands to our database program, then make assertions about the output:
9+
I'll define a short helper to send a list of commands to our database program then make assertions about the output:
1010

1111
```ruby
1212
describe 'database' do
@@ -158,7 +158,7 @@ it 'prints error message if strings are too long' do
158158
end
159159
```
160160

161-
In order to do this we need to upgrade our parser. As a reminder, we're currently using [scanf()](https://linux.die.net/man/3/scanf)
161+
In order to do this we need to upgrade our parser. As a reminder, we're currently using [scanf()](https://linux.die.net/man/3/scanf):
162162
```c
163163
if (strncmp(input_buffer->buffer, "insert", 6) == 0) {
164164
statement->type = STATEMENT_INSERT;

0 commit comments

Comments
 (0)