The Trunk: Collections-nice.772.mcz

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

The Trunk: Collections-nice.772.mcz

Nicolas Cellier uploaded a new version of Collections to project The Trunk:

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

Name: Collections-nice.772
Author: nice
Time: 30 November 2017, 10:30:07.12046 pm
UUID: e43714c3-3e4c-4502-bb00-75852da33184
Ancestors: Collections-nice.771

Fix the CharacterSet failures that I just created

I would have sweared that I ran the tests...
Not all the tests? Embarassing...

=============== Diff against Collections-nice.771 ===============

Item was changed:
  ----- Method: CharacterSet>>union: (in category 'enumerating') -----
  union: aCollection
- (self species = aCollection species or: [aCollection isString]) ifFalse: [^super union: aCollection].
  aCollection class = CharacterSetComplement ifTrue: [^aCollection union: self].
+ (self species = aCollection species or: [aCollection isString]) ifFalse: [^super union: aCollection].
  ^self copy addAll: aCollection; yourself!

Item was changed:
  ----- Method: LazyCharacterSet class>>including: (in category 'instance creation') -----
  including: aBlock
  "Create the set of Character for which aBlock evaluates to true"
+ ^self new block: aBlock!
- ^self class new block: aBlock!

Item was changed:
  ----- Method: LazyCharacterSet>>block: (in category 'accessing') -----
  block: aValuable
  "Set the block used to determine if I include a Character or not.
  aValuable is an object that shoud answer true or false when sent value:"
  byteArrayMapCache := nil.
+ block := aValuable!
- ^block := aValuable!