[squeak-dev] The Trunk: CollectionsTests-eem.216.mcz

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Fri May 2 17:56:43 UTC 2014


Ah, some months (years?) ago, i wanted to get rid both of ReadWriteStream
and #from:to: usage.
I had even prepared Compiler changes for Pharo, but it rotted before
integration, and conflicted with Colin's changes in Squeak.


2014-05-02 18:52 GMT+02:00 <commits at source.squeak.org>:

> Eliot Miranda uploaded a new version of CollectionsTests to project The
> Trunk:
> http://source.squeak.org/trunk/CollectionsTests-eem.216.mcz
>
> ==================== Summary ====================
>
> Name: CollectionsTests-eem.216
> Author: eem
> Time: 2 May 2014, 9:51:57.073 am
> UUID: 51439739-6902-45d6-86d1-461fa61b652a
> Ancestors: CollectionsTests-topa.215
>
> Add tests that expect unsurprising behaviour from
> ([Read|Write]Stream on:...from:...to:...) contents
>
> =============== Diff against CollectionsTests-topa.215 ===============
>
> Item was added:
> + ----- Method: ReadStreamTest>>testOnFromTo (in category 'tests -
> accessing') -----
> + testOnFromTo
> +       self assert: (ReadWriteStream
> +                                               on: (String withAll: ((0
> to: 255) collect: [:n| n asCharacter]))
> +                                               from: $A asInteger + 1
> +                                               to: $Z asInteger + 1)
> +                                       contents
> +               equals: (String withAll: (($A asInteger to: $Z asInteger)
> collect: [:n| n asCharacter]))!
>
> Item was added:
> + ----- Method: ReadWriteStreamTest>>testOnFromTo (in category 'tests')
> -----
> + testOnFromTo
> +       self assert: (ReadWriteStream
> +                                               on: (String withAll: ((0
> to: 255) collect: [:n| n asCharacter]))
> +                                               from: $A asInteger + 1
> +                                               to: $Z asInteger + 1)
> +                                       contents
> +               equals: (String withAll: (($A asInteger to: $Z asInteger)
> collect: [:n| n asCharacter]))!
>
> Item was added:
> + ----- Method: WriteStreamTest>>testOnFromTo (in category 'tests -
> accessing') -----
> + testOnFromTo
> +       | aToZ |
> +       aToZ := String withAll: (($A asInteger to: $Z asInteger) collect:
> [:n| n asCharacter]).
> +       self assert: ((ReadWriteStream
> +                                               on: (String withAll: ((0
> to: 255) collect: [:n| n asCharacter]))
> +                                               from: $A asInteger + 1
> +                                               to: $Z asInteger + 1)
> +                                       nextPutAll: aToZ;
> +                                       contents)
> +               equals: aToZ!
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20140502/36644b24/attachment.htm


More information about the Squeak-dev mailing list