[Pkg] The Trunk: CollectionsTests-mt.324.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Nov 18 09:35:03 UTC 2019


Marcel Taeumel uploaded a new version of CollectionsTests to project The Trunk:
http://source.squeak.org/trunk/CollectionsTests-mt.324.mcz

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

Name: CollectionsTests-mt.324
Author: mt
Time: 18 November 2019, 10:35:05.795051 am
UUID: 320887ba-7b83-8240-872c-38dbc31f2e78
Ancestors: CollectionsTests-ct.321, CollectionsTests-nice.323

Merges new test that reveals a bug in OrderedDictionary.

=============== Diff against CollectionsTests-nice.323 ===============

Item was changed:
  ----- Method: OrderedDictionaryTest>>testCopyFromTo (in category 'tests - copying') -----
  testCopyFromTo
  
+ 	| copy |
  	1 to: 10 do: [:index |
  		sut at: index put: nil].
  
+ 	copy := sut copyFrom: 3 to: 5.
+ 	self assert: (3 to: 5) asArray equals: copy keys.
+ 	copy at: 3 put: #foo.
+ 	self assert: (sut at: 3) isNil.
+ 	
+ 	copy at: 11 put: #ba.
+ 	self assert: #ba equals: (copy at: 11).!
- 	(sut copyFrom: 3 to: 5) in: [:copy |
- 		self assert: (3 to: 5) asArray equals: copy keys.
- 		copy at: 3 put: #foo.
- 		self assert: (sut at: 3) isNil.].!



More information about the Packages mailing list