Comment #3 on issue 3547 by [email protected]: Have a look at the new
match: implementation
http://code.google.com/p/pharo/issues/detail?id=3547
ame: CollectionsTests-ul.179
Author: ul
Time: 15 January 2011, 1:58:09.591 pm
UUID: eda65a29-e17b-634b-b99c-e6f862302701
Ancestors: CollectionsTests-nice.178
- 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') ]!