[squeak-dev] The Inbox: Regex-Tests-Core-ct.22.mcz
commits at source.squeak.org
commits at source.squeak.org
Mon Aug 23 17:38:34 UTC 2021
A new version of Regex-Tests-Core was added to project The Inbox:
http://source.squeak.org/inbox/Regex-Tests-Core-ct.22.mcz
==================== Summary ====================
Name: Regex-Tests-Core-ct.22
Author: ct
Time: 23 August 2021, 7:38:33.3995 pm
UUID: b06d939a-58f4-1544-b57e-8ec822bda2d7
Ancestors: Regex-Tests-Core-mt.16
Complements Regex-Core-ct.66 (convenience selectors).
=============== Diff against Regex-Tests-Core-mt.16 ===============
Item was added:
+ ----- Method: RxMatcherTest>>testAllSubexpressions (in category 'testing-protocol') -----
+ testAllSubexpressions
+
+ #(
+ ('abc' (('abc')))
+ ('(a)b(c)' (('abc') ('a') ('c')))
+ ('(\w+)' (('abc') ('abc')))
+ ('(\w)+' (('abc') ('a' 'b' 'c')))
+ ('abc(\w)?' (('abc') ()))
+ ) do: [:pair |
+ | matcher |
+ matcher := pair first asRegex.
+ self assert: (matcher matches: 'abc').
+ self
+ assert: pair second
+ equals: (matcher allSubexpressions collect: #asArray)].!
More information about the Squeak-dev
mailing list
|