[squeak-dev] [Test failure] FileStreamTest>>testPositionPastEndIsAtEnd

Hannes Hirzel hannes.hirzel at gmail.com
Wed Nov 3 13:41:55 UTC 2010


Hello,

Any ideas how to fix the cause for the following test to fail

--Hannes

==============================================================

testPositionPastEndIsAtEnd
	"Tests that a file positioned after its end responds true to #atEnd"

	| filename file |
	filename := 'filestream.tst'.
	file := StandardFileStream forceNewFileNamed: filename.
	[
		file position: 1000.
		self assert: file atEnd.
	] ensure:[
		file close.
		FileDirectory default deleteFileNamed: filename ifAbsent:[].
	].



More information about the Squeak-dev mailing list