how to? mantis
nicolas cellier
ncellier at ifrance.com
Mon Feb 13 20:39:30 UTC 2006
Hi all,
found the bug (Character>>sameAs:) lacking in 3.8 (make some VB-regex fail).
Searched mantis with simple filters regex then sameAs, found nothing matching.
Checked in a 3.9 image, it is corrected OK.
I attach the test and patch for older image, in case any one interested.
Is there a corresponding entry in mantis ?
How to find it ?
-------------- next part --------------
'From Squeak3.8 of ''5 May 2005'' [latest update: #6665] on 13 February 2006 at 9:28:15 pm'!
!Character methodsFor: 'testing' stamp: 'nice 2/13/2006 21:28'!
sameAs: aCharacter
"Answer whether the receiver is the same as aCharacter,
ignoring case differences."
^ self asUppercase = aCharacter asUppercase! !
-------------- next part --------------
'From Squeak3.8 of ''5 May 2005'' [latest update: #6665] on 13 February 2006 at 9:28:20 pm'!
TestCase subclass: #RegexTest
instanceVariableNames: ''
classVariableNames: ''
poolDictionaries: ''
category: 'VB-Regex-Tests'!
!RegexTest commentStamp: '<historical>' prior: 0!
This class is used to test Vassili Bykov Regular expression matcher!
!RegexTest methodsFor: 'testing' stamp: 'nice 2/13/2006 21:24'!
testBugSameAs
"self debug: #testBugSameAs"
| regex |
regex := 'CHARACTER' asRegexIgnoringCase.
self
should: [regex matchesPrefix: 'CHARACTER*1']
description: '(Character canUnderstand: #sameAs:) ifFalse: [self error]'! !
!RegexTest reorganize!
('testing' testBugSameAs)
!
More information about the Squeak-dev
mailing list
|