[squeak-dev] The Inbox: CollectionsTests-ul.215.mcz
commits at source.squeak.org
commits at source.squeak.org
Mon Feb 3 17:39:17 UTC 2014
A new version of CollectionsTests was added to project The Inbox:
http://source.squeak.org/inbox/CollectionsTests-ul.215.mcz
==================== Summary ====================
Name: CollectionsTests-ul.215
Author: ul
Time: 3 February 2014, 6:28:52.614 pm
UUID: e6ad2d76-10b9-427d-a742-2784787723b8
Ancestors: CollectionsTests-dtl.214
- added a test for Array >> #shouldBePrintedAsLiteral
=============== Diff against CollectionsTests-dtl.214 ===============
Item was added:
+ ----- Method: ArrayTest>>testShouldBePrintedAsLiteral (in category 'testing') -----
+ testShouldBePrintedAsLiteral
+ "We work with a copy of literalArray, to avoid corrupting the code."
+
+ | a |
+ a := #(1).
+ self assert: #() shouldBePrintedAsLiteral.
+ self assert: #(1) shouldBePrintedAsLiteral.
+ self assert: { a. a } shouldBePrintedAsLiteral!
More information about the Squeak-dev
mailing list
|