Skip to content

Commit

Permalink
Consistently call functions
Browse files Browse the repository at this point in the history
  • Loading branch information
illicitonion committed Jan 13, 2024
1 parent 33041e0 commit f4cb43a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/interfaces/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ The first task is to implement unit tests for this type.
You should write unit tests which show at least the following (you can write more if you want!):
* If you make a buffer named `b` containing some bytes, calling `b.Buffer()` returns the same bytes you created it with.
* If you write some extra bytes to that buffer using `b.Write()`, a call to `b.Buffer()` returns both the initial bytes and the extra bytes.
* If you call `b.Read` with a slice big enough to read all of the bytes in the buffer, all of the bytes are read.
* If you call `b.Read` with a slice smaller than the contents of the buffer, some of the bytes are read. If you call it again, the next bytes are read.
* If you call `b.Read()` with a slice big enough to read all of the bytes in the buffer, all of the bytes are read.
* If you call `b.Read()` with a slice smaller than the contents of the buffer, some of the bytes are read. If you call it again, the next bytes are read.

### Implementing our own `bytes.Buffer`

Expand Down

0 comments on commit f4cb43a

Please sign in to comment.