Skip to content

Commit

Permalink
Merge pull request #138 from astares/137-It-should-be-possible-to-res…
Browse files Browse the repository at this point in the history
…et-a-ZnCharacterReadStream

It should be possible to reset a ZnCharacterReadStream
  • Loading branch information
svenvc authored May 29, 2024
2 parents 33b049b + 7e68c90 commit e05727c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
initialization
reset

^ stream reset
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
tests
testReset

| stream |
stream := ZnCharacterReadStream on: 'abc' asByteArray readStream.
self assert: stream next equals: $a.
stream reset.
self assert: stream next equals: $a

0 comments on commit e05727c

Please sign in to comment.