File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ title: Part 4 - Our First Tests (and Bugs)
4
4
5
5
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.
6
6
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 .
8
8
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:
10
10
11
11
``` ruby
12
12
describe ' database' do
@@ -158,7 +158,7 @@ it 'prints error message if strings are too long' do
158
158
end
159
159
```
160
160
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 ) :
162
162
``` c
163
163
if (strncmp(input_buffer->buffer, " insert" , 6 ) == 0 ) {
164
164
statement->type = STATEMENT_INSERT;
You can’t perform that action at this time.
0 commit comments