[squeak-dev] The Trunk: CollectionsTests-ct.321.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Nov 18 09:36:20 UTC 2019


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

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

Name: CollectionsTests-ct.321
Author: ct
Time: 27 September 2019, 4:15:21.022642 pm
UUID: 6638fd69-d57a-7e43-a99c-2d99b52a0b36
Ancestors: CollectionsTests-jr.320

Extend OrderedDictionaryTest >> #testCopyFromTo to reveal a bug

=============== Diff against CollectionsTests-jr.320 ===============

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 Squeak-dev mailing list