Skip to content

Commit b82aeb8

Browse files
committed
It should be possible to reset a ZnCharacterReadStream
Fix svenvc#137
1 parent 33b049b commit b82aeb8

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
initialization
2+
reset
3+
4+
^ stream reset
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
SystemOrganization addCategory: #'Zinc-Character-Encoding-Core'!
1+
self packageOrganizer ensurePackage: #'Zinc-Character-Encoding-Core' withTags: #()!
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
tests
2+
testReset
3+
4+
| stream |
5+
stream := ZnCharacterReadStream on: 'abc' asByteArray readStream.
6+
self assert: stream next equals: $a.
7+
stream reset.
8+
self assert: stream next equals: $a
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
SystemOrganization addCategory: #'Zinc-Character-Encoding-Tests'!
1+
self packageOrganizer ensurePackage: #'Zinc-Character-Encoding-Tests' withTags: #()!

0 commit comments

Comments
 (0)