The Trunk: CollectionsTests-ul.340.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-ul.340.mcz

commits-2
Levente Uzonyi uploaded a new version of CollectionsTests to project The Trunk:
http://source.squeak.org/trunk/CollectionsTests-ul.340.mcz

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

Name: CollectionsTests-ul.340
Author: ul
Time: 29 June 2020, 4:14:52.34981 am
UUID: 2375f0fe-f9e4-4934-92af-078354aa29c8
Ancestors: CollectionsTests-nice.339

- added a test case for ReadStream >> #match:

=============== Diff against CollectionsTests-nice.339 ===============

Item was added:
+ ----- Method: ReadStreamTest>>testMatch (in category 'tests - testing') -----
+ testMatch
+
+ | stream |
+ stream := ReadStream on: 'foobarbaz'.
+ self assert: (stream match: 'foo').
+ self assert: stream position = 3.
+ self assert: (stream match: 'baz').
+ self assert: stream position = 9.
+ self assert: stream atEnd.
+ self assert: (stream match: '').
+ self deny: (stream match: 'foo').
+ stream reset.
+ self deny: (stream match: '1').
+ self assert: stream atEnd!