[squeak-dev] The Inbox: Regex-Tests-Core-ct.23.mcz
commits at source.squeak.org
commits at source.squeak.org
Mon Aug 23 17:48:09 UTC 2021
A new version of Regex-Tests-Core was added to project The Inbox:
http://source.squeak.org/inbox/Regex-Tests-Core-ct.23.mcz
==================== Summary ====================
Name: Regex-Tests-Core-ct.23
Author: ct
Time: 23 August 2021, 7:48:07.9305 pm
UUID: 97f6eb6d-62bc-db45-b852-5792d09fe4e9
Ancestors: Regex-Tests-Core-mt.16
Complements Regex-Core-ct.67 (named capturing groups).
=============== Diff against Regex-Tests-Core-mt.16 ===============
Item was added:
+ ----- Method: RxMatcherTest>>testAllKeyedSubexpressions (in category 'testing-protocol') -----
+ testAllKeyedSubexpressions
+
+ #(
+ ('abc' ())
+ ('(\w)+' ())
+ ('(?<foo>a)b(c)' (foo ('a')))
+ ('(?<foo>\w+)' (foo ('abc')))
+ ('(?<foo>\w)+' (foo ('a' 'b' 'c')))
+ ('abc(?<foo>\w)?' (foo ()))
+ ) do: [:pair |
+ | matcher |
+ matcher := pair first asRegex.
+ self assert: (matcher matches: 'abc').
+ self
+ assert: (Dictionary newFromPairs: pair second)
+ equals: matcher allKeyedSubexpressions].!
More information about the Squeak-dev
mailing list
|