[squeak-dev] The Trunk: CollectionsTests-ul.340.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Jun 29 02:14:53 UTC 2020


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!



More information about the Squeak-dev mailing list