The Inbox: CollectionsTests-ul.215.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Inbox: CollectionsTests-ul.215.mcz

commits-2
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!