Comment #1 on issue 3673 by [email protected]: 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') ]!