The Trunk: CollectionsTests-nice.222.mcz

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

The Trunk: CollectionsTests-nice.222.mcz

commits-2
Nicolas Cellier uploaded a new version of CollectionsTests to project The Trunk:
http://source.squeak.org/trunk/CollectionsTests-nice.222.mcz

==================== Summary ====================

Name: CollectionsTests-nice.222
Author: nice
Time: 28 July 2014, 10:43:39.917 pm
UUID: 1e0d0129-d0ea-44d0-9dc1-684240a6a12e
Ancestors: CollectionsTests-nice.221

Document how peekLast and peekBack should work when sent to a RWBinaryOrTextStream.

=============== Diff against CollectionsTests-nice.221 ===============

Item was added:
+ ----- Method: RWBinaryOrTextStreamTest>>testPeekBack (in category 'tests') -----
+ testPeekBack
+
+ | stream |
+ stream := RWBinaryOrTextStream on: String new.
+ stream nextPutAll: 'world'.
+ self assert: $l equals: stream peekBack.
+ stream binary.
+ stream nextPutAll: #[98 105 110 97 114 121]..
+ self assert: 114 equals: stream peekBack.!

Item was added:
+ ----- Method: RWBinaryOrTextStreamTest>>testPeekLast (in category 'tests') -----
+ testPeekLast
+
+ | stream |
+ stream := RWBinaryOrTextStream on: String new.
+ stream nextPutAll: 'world'.
+ self assert: $d equals: stream peekLast.
+ stream binary.
+ stream nextPutAll: #[98 105 110 97 114 121].
+ self assert: 121 equals: stream peekLast.
+ stream reset.
+ self assert: nil equals: stream peekLast.!