Nicolas Cellier uploaded a new version of CollectionsTests to project The Trunk:
http://source.squeak.org/trunk/CollectionsTests-nice.107.mcz
==================== Summary ====================
Name: CollectionsTests-nice.107
Author: nice
Time: 3 November 2009, 10:24:26 am
UUID: 065a79ad-d5bf-4ec4-a882-683d2d307f73
Ancestors: CollectionsTests-nice.106
Add a test denying a WeakArray isLiteral
=============== Diff against CollectionsTests-nice.106 ===============
Item was changed:
----- Method: ArrayTest>>testIsLiteral (in category 'testing') -----
testIsLiteral
"We work with a copy of literalArray, to avoid corrupting the code."
+
+ | aLiteralArray |
+ aLiteralArray := literalArray copy.
+ self assert: aLiteralArray isLiteral.
+ aLiteralArray at: 1 put: self class.
+ self deny: aLiteralArray isLiteral.
+ self deny: (literalArray as: WeakArray) isLiteral description: 'instances of Array subclasses are not literal'.!
- | l |
- l := literalArray copy.
- self assert: l isLiteral.
- l at: 1 put: self class.
- self deny: l isLiteral!
Nicolas Cellier uploaded a new version of CollectionsTests to project The Trunk:
http://source.squeak.org/trunk/CollectionsTests-nice.107.mcz
==================== Summary ====================
Name: CollectionsTests-nice.107
Author: nice
Time: 3 November 2009, 10:24:26 am
UUID: 065a79ad-d5bf-4ec4-a882-683d2d307f73
Ancestors: CollectionsTests-nice.106
Add a test denying a WeakArray isLiteral
=============== Diff against CollectionsTests-nice.106 ===============
Item was changed:
----- Method: ArrayTest>>testIsLiteral (in category 'testing') -----
testIsLiteral
"We work with a copy of literalArray, to avoid corrupting the code."
+
+ | aLiteralArray |
+ aLiteralArray := literalArray copy.
+ self assert: aLiteralArray isLiteral.
+ aLiteralArray at: 1 put: self class.
+ self deny: aLiteralArray isLiteral.
+ self deny: (literalArray as: WeakArray) isLiteral description: 'instances of Array subclasses are not literal'.!
- | l |
- l := literalArray copy.
- self assert: l isLiteral.
- l at: 1 put: self class.
- self deny: l isLiteral!
Nicolas Cellier uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-nice.178.mcz
==================== Summary ====================
Name: Collections-nice.178
Author: nice
Time: 2 November 2009, 10:41:30 am
UUID: 0c724f71-9fc7-4701-a3cb-787c96f8c374
Ancestors: Collections-nice.177
subclasses of Array are not literal
=============== Diff against Collections-nice.177 ===============
Item was changed:
----- Method: Array>>isLiteral (in category 'testing') -----
isLiteral
+ ^self class == Array and: [self allSatisfy: [:each | each isLiteral]]!
- ^ self allSatisfy: [:each | each isLiteral]!
Nicolas Cellier uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-nice.178.mcz
==================== Summary ====================
Name: Collections-nice.178
Author: nice
Time: 2 November 2009, 10:41:30 am
UUID: 0c724f71-9fc7-4701-a3cb-787c96f8c374
Ancestors: Collections-nice.177
subclasses of Array are not literal
=============== Diff against Collections-nice.177 ===============
Item was changed:
----- Method: Array>>isLiteral (in category 'testing') -----
isLiteral
+ ^self class == Array and: [self allSatisfy: [:each | each isLiteral]]!
- ^ self allSatisfy: [:each | each isLiteral]!
Nicolas Cellier uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-nice.178.mcz
==================== Summary ====================
Name: Collections-nice.178
Author: nice
Time: 2 November 2009, 10:41:30 am
UUID: 0c724f71-9fc7-4701-a3cb-787c96f8c374
Ancestors: Collections-nice.177
subclasses of Array are not literal
=============== Diff against Collections-nice.177 ===============
Item was changed:
----- Method: Array>>isLiteral (in category 'testing') -----
isLiteral
+ ^self class == Array and: [self allSatisfy: [:each | each isLiteral]]!
- ^ self allSatisfy: [:each | each isLiteral]!
Nicolas Cellier uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-nice.87.mcz
==================== Summary ====================
Name: Graphics-nice.87
Author: nice
Time: 1 November 2009, 8:47:55 am
UUID: d4ecc98b-609a-4d0f-8fe1-8503c85b258d
Ancestors: Graphics-nice.86
Rectangle storeOn: needs parenthesis
=============== Diff against Graphics-nice.86 ===============
Item was changed:
----- Method: Rectangle>>storeOn: (in category 'printing') -----
storeOn: aStream
"printed form is good for storing too"
+
+ aStream nextPut: $(.
+ self printOn: aStream.
+ aStream nextPut: $).!
- self printOn: aStream!
Nicolas Cellier uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-nice.87.mcz
==================== Summary ====================
Name: Graphics-nice.87
Author: nice
Time: 1 November 2009, 8:47:55 am
UUID: d4ecc98b-609a-4d0f-8fe1-8503c85b258d
Ancestors: Graphics-nice.86
Rectangle storeOn: needs parenthesis
=============== Diff against Graphics-nice.86 ===============
Item was changed:
----- Method: Rectangle>>storeOn: (in category 'printing') -----
storeOn: aStream
"printed form is good for storing too"
+
+ aStream nextPut: $(.
+ self printOn: aStream.
+ aStream nextPut: $).!
- self printOn: aStream!