Skip to content

Commit

Permalink
Merge 440c248
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvc committed Aug 31, 2024
2 parents 504fca8 + 440c248 commit df647ef
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
reset
self flushBuffer.
stream reset
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
tests
testWritingReset

| file writeStream readStream |
file := 'test.txt' asFileReference ensureCreateFile.

writeStream := file binaryWriteStream.
writeStream nextPutAll: 'pedro'.
writeStream reset.
writeStream nextPutAll: 'pha'.
writeStream close.

readStream := file readStream.
self assert: readStream contents equals: 'pharo'

0 comments on commit df647ef

Please sign in to comment.