Christoph Thiede uploaded a new version of CollectionsTests to project The Inbox: http://source.squeak.org/inbox/CollectionsTests-ct.404.mcz
==================== Summary ====================
Name: CollectionsTests-ct.404 Author: ct Time: 10 January 2024, 5:56:25.41774 pm UUID: e767dffd-0390-684f-9eee-1dd083656838 Ancestors: CollectionsTests-mt.403
Improves branch coverage for LinkedListTest.
=============== Diff against CollectionsTests-mt.403 ===============
Item was changed: ----- Method: LinkedListTest>>test11removeLast (in category 'tests') ----- test11removeLast list add: link1. list add: link2. list add: link3. list add: link4. self assert: list size = 4. self assert: list first == link1. self assert: list second == link2. self assert: list third == link3. self assert: list fourth == link4. list removeLast. self assert: list size = 3. self assert: list first == link1. self assert: list second == link2. self assert: list third == link3. list removeLast. self assert: list size = 2. self assert: list first == link1. self assert: list second == link2. list removeLast. self assert: list size = 1. self assert: list first == link1. + list removeLast. - list removeFirst. self assert: list isEmpty!
Item was changed: ----- Method: LinkedListTest>>testAtPut (in category 'tests - sequenceable') ----- testAtPut | ll | ll := LinkedList new. ll add: 1. + ll at: 1 put: 2. + self assert: (ll at: 1) equals: 2. + + ll add: 3. + ll at: 2 put: 1.5. + self assert: (ll at: 2) equals: 1.5. + + ll add: 4. + ll at: 2 put: 1.75. + self assert: (ll at: 2) equals: 1.75.! - self assert: (ll at: 1) equals: 2!
Item was added: + ----- Method: LinkedListTest>>testSwapOutOfBounds (in category 'tests - swap') ----- + testSwapOutOfBounds + |aList| + aList := LinkedList with: 5 with: 4 with: 3 with: 2 with: 1. + + self + should: [aList swap: 1 with: 6] + raise: Error. + self + should: [aList swap: 1 with: 0] + raise: Error. + self + should: [aList swap: 0 with: 1] + raise: Error. + self + should: [aList swap: 6 with: 1] + raise: Error.!
squeak-dev@lists.squeakfoundation.org