[ENH] Chronology-d-YearMonthWeekRefactoring ( current version ) ( [er][et][su][cd] [BUG] Timespan>>includesAnyOf: doesnot return false )

tomkoenig at mindspring.com tomkoenig at mindspring.com
Sun Jan 4 22:59:54 CET 2004


Timespan>>includesAnyOf: returns reciever rather than returning false
when no element of the collection is included in the receiver.  The code
reads:
includesAnyOf: aCollection 
	"Answer whether any element of aCollection is included in the receiver"
	aCollection do: [ :elem | (self includes: elem) ifTrue: [^ true]].
A simple test is:
(Timespan starting: DateAndTime epoch duration: 1 day) includesAnyOf:
(Bag with: '07-01-1900' asDate)

Tested with 3.7a #5623 plus Chronology change sets :
[ENH] Chronology-AnsiCompTests
[ENH] Chronology-c-ANSIDateAndTimeDuration ( current version )
[ENH] Chronology-d-YearMonthWeekRefactoring ( current version )
[ENH] Chronology-e-TemporaryDateTimeTimeSpan ( current version )
[ENH] Chronology-f-ANSICompatibilitySansDateAndTimeDuration.2.cs
[ENH] Chronology-i-ConvertTDateTTimeTTimestamp1of2.2.cs ( current
version )
[ENH] Chronology-j-ConvertTDateTTimeTTimestamp2of2.3.cs ( current
version )
[ENH] Chronology-l-Morphic.2.cs


More information about the Squeak-harvest mailing list