[squeak-dev] The Trunk: CollectionsTests-nice.222.mcz
commits at source.squeak.org
commits at source.squeak.org
Mon Jul 28 20:44:06 UTC 2014
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.!
More information about the Squeak-dev
mailing list
|