[Pkg] Rio: File-Test-kph.5.mcz

squeak-dev-noreply at lists.squeakfoundation.org squeak-dev-noreply at lists.squeakfoundation.org
Wed Dec 3 14:00:30 UTC 2008


A new version of File-Test was added to project Rio:
http://www.squeaksource.com/Rio/File-Test-kph.5.mcz

==================== Summary ====================

Name: File-Test-kph.5
Author: kph
Time: 3 December 2008, 2:00:29 pm
UUID: 5401ab63-2773-4183-b5cd-d587de1805db
Ancestors: File-Test-kph.4

. fixed ascii file reading
. fixed windows volumes equality (resulted in the Volumes set was getting filled up)
. reader now calls readStream, so is equivalent now

=============== Diff against File-Test-kph.4 ===============

Item was added:
+ ----- Method: FileModeTests>>fixture: (in category 'fixtures') -----
+ fixture: lineEnding
+ 
+ 	file := (self useTestDir / 'crlf') contents: 'hello' , lineEnding , 'world'.
+ 	 !

Item was changed:
  ----- Method: FileModeTests>>testBinaryModes (in category 'binary mode') -----
  testBinaryModes
  
+ 	file := self useTestDir / self hello.
+ 	
+ 	self deny: (file binary == file).
+ 	self assert: (file beBinary == file).
+  
+ 	file reader: [:r | 
+ 	
+ 		self assert: (r isBinary = true).	
- 	rio := self useTestDir / self hello.
  	
+ 	]!
- 	self deny: (rio binary == rio).
- 	self assert: (rio beBinary == rio).
-  !

Item was added:
+ ----- Method: FileStreamsCopyTest>>testRead (in category 'as yet unclassified') -----
+ testRead
+ 
+ 	| in |
+ 	
+ 	in := self fox readStream.
+ 	
+ 	self assert:(self fox = (String streamContents: [ :out | 
+ 		  in copyTo: out size: self fox size withProgress: 'test'.
+ 		]))!

Item was added:
+ ----- Method: FileModeTests>>testReadingCrLf (in category 'fixtures') -----
+ testReadingCrLf
+ 
+ 	"
+ 	self debug: #testReadingCrLf.
+ 	"
+ 	
+ 	self fixture: String crlf.
+ 	
+ 	file reader: [ :r |
+ 	
+ 		self assert: (r nextLine = 'hello').
+ 		self assert: (r nextLine = 'world').
+ 		self assert: r atEnd.
+ 	].!



More information about the Packages mailing list