[squeak-dev] The Trunk: CollectionsTests-ct.382.mcz
commits at source.squeak.org
commits at source.squeak.org
Tue Dec 27 23:45:46 UTC 2022
Christoph Thiede uploaded a new version of CollectionsTests to project The Trunk:
http://source.squeak.org/trunk/CollectionsTests-ct.382.mcz
==================== Summary ====================
Name: CollectionsTests-ct.382
Author: ct
Time: 28 December 2022, 12:45:45.456118 am
UUID: 7dea2b85-758c-5a43-af05-a12c8245ba10
Ancestors: CollectionsTests-cmm.381
Adds test for Collections-ct.1022 (PositionableStream>>#peek:).
=============== Diff against CollectionsTests-cmm.381 ===============
Item was added:
+ ----- Method: ReadStreamTest>>testPeeks (in category 'tests - accessing') -----
+ testPeeks
+ | stream |
+ stream := self streamOnArray.
+
+ self assert: (stream peek: 0) = #().
+ self assert: (stream peek: 1) = #(1).
+ self assert: (stream peek: 3) = #(1 (a b c) false).
+ self assert: (stream peek: 4) = #(1 (a b c) false).
+
+ stream next.
+
+ self assert: (stream peek: 0) = #().
+ self assert: (stream peek: 1) = #((a b c)).
+ self assert: (stream peek: 3) = #((a b c) false).!
More information about the Squeak-dev
mailing list
|