[Pharo-project] Issue 3673 in pharo: do not raise an error in String >> #match: if the receiver contains '**' or '*#' as a substring

pharo at googlecode.com pharo at googlecode.com
Sun Feb 6 22:16:40 CET 2011


Comment #1 on issue 3673 by stephane... at gmail.com: do not raise an error in  
String >> #match: if the receiver contains '**' or '*#' as a substring
http://code.google.com/p/pharo/issues/detail?id=3673

- updated StringTest >> #testMatch to reflect the changes of  
Collections-ul.420

=============== Diff against CollectionsTests-nice.178 ===============

Item was changed:
  ----- Method: StringTest>>testMatch (in category 'test-comparing') -----
  testMatch

+        
#('**' 'f**'  'f**o' 'f*' '*f*' 'f#*' 'f##' '*oo' '#oo' '*o*' '#o#' '#o*' '*o#' 'fo*' 'fo#' '*foo*' '###' '*#'  'f*#' 'f*#o')
-       #('**' '*#' 'f**' 'f*#' 'f**o' 'f*#o') do: [ :each |
-               self should: [ each match: 'foo' ] raise: Error ].
-        
#('f*' '*f*' 'f#*' 'f##' '*oo' '#oo' '*o*' '#o#' '#o*' '*o#' 'fo*' 'fo#' '*foo*' '###')
                do: [ :each | self assert: (each match: 'foo') ].
        #('bar' 'foo#' '#foo' '*foo#' '#foo*' '*bar*') do: [ :each |
                self deny: (each match: 'foo') ]!





More information about the Pharo-project mailing list