[squeak-dev] The Trunk: CollectionsTests-ul.362.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Sep 13 18:17:51 UTC 2021


Levente Uzonyi uploaded a new version of CollectionsTests to project The Trunk:
http://source.squeak.org/trunk/CollectionsTests-ul.362.mcz

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

Name: CollectionsTests-ul.362
Author: ul
Time: 13 September 2021, 8:17:50.266844 pm
UUID: 77f27034-be38-4caf-9267-a697b76db5de
Ancestors: CollectionsTests-ct.361

- let the description of SequenceableCollectionTest >> #testDoWithIndexDeprecation tell which methods need to be changed

=============== Diff against CollectionsTests-ct.361 ===============

Item was changed:
  ----- Method: SequenceableCollectionTest>>testDoWithIndexDeprecation (in category 'tests - deprecation') -----
  testDoWithIndexDeprecation
  
+ 	| selector senders |
+ 	selector := #doWithIndex:.
+ 	senders := self systemNavigation allCallsOn: selector.
+ 	self 
+ 		assert: senders size = 1
+ 		description: (String streamContents: [ :stream |
+ 			| thisSelector |
+ 			stream
+ 				nextPutAll: 'Unexpected senders of ';
+ 				print: selector;
+ 				nextPutAll: ': '.
+ 			thisSelector := thisContext method selector.
+ 			(senders reject: [ :each |
+ 				(each actualClass == self class
+ 					and: [ each selector == thisSelector ]) ])
+ 				do: [ :each | 
+ 					stream 
+ 						nextPutAll: each actualClass name;
+ 						nextPutAll: ' >> ';
+ 						print: each selector ]
+ 				separatedBy: [ stream nextPutAll: ', ' ] ])!
- 	self assert: 1 equals: (self systemNavigation allCallsOn: #doWithIndex:) size.!



More information about the Squeak-dev mailing list