[squeak-dev] The Trunk: NetworkTests-ct.61.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Apr 10 13:18:27 UTC 2021


Nicolas Cellier uploaded a new version of NetworkTests to project The Trunk:
http://source.squeak.org/trunk/NetworkTests-ct.61.mcz

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

Name: NetworkTests-ct.61
Author: ct
Time: 14 November 2020, 7:44:22.440394 pm
UUID: d2c5f22e-ee31-3a4b-aaf9-eec14d08a7b8
Ancestors: NetworkTests-eem.60

Document bug in FileUrl >> #retrieveContents. A fix is arriving soon at the inbox!

=============== Diff against NetworkTests-eem.60 ===============

Item was added:
+ ----- Method: FileUrlTest>>testRetrieveContents (in category 'tests') -----
+ testRetrieveContents
+ 
+ 	| content name |
+ 	name := '{1}-{2}.txt' format: {self className. self selector}.
+ 	content := self identityHash asString.
+ 	
+ 	FileStream newFileNamed: name do: [:stream |
+ 		stream nextPutAll: content].
+ 	[self assert: content equals:
+ 		(FileUrl absoluteFromFileNameOrUrlString: name) retrieveContents content]
+ 			ensure: [FileDirectory default deleteFileNamed: name].!



More information about the Squeak-dev mailing list