Skip to content

Commit

Permalink
better test for StringBuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
icewind1991 committed Apr 19, 2021
1 parent 6776467 commit 5c6a422
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/StringBufferTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ public function testPushRead() {
$this->assertEquals(6, $buffer->remaining());
$this->assertEquals("foo", $buffer->read(3));
$this->assertEquals(3, $buffer->remaining());
$this->assertEquals("bar", $buffer->read(10));
$this->assertEquals("b", $buffer->read(1));
$this->assertEquals(2, $buffer->remaining());
$this->assertEquals("ar", $buffer->read(10));
$this->assertEquals(0, $buffer->remaining());
}

Expand Down

0 comments on commit 5c6a422

Please sign in to comment.