The Trunk: NetworkTests-ct.61.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: NetworkTests-ct.61.mcz

commits-2
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].!