The Inbox: Regex-Tests-Core-ct.9.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Inbox: Regex-Tests-Core-ct.9.mcz

commits-2
Christoph Thiede uploaded a new version of Regex-Tests-Core to project The Inbox:
http://source.squeak.org/inbox/Regex-Tests-Core-ct.9.mcz

==================== Summary ====================

Name: Regex-Tests-Core-ct.9
Author: ct
Time: 6 March 2020, 8:34:43.926886 pm
UUID: 9868324f-4a04-7440-9dfe-96d62beca3c9
Ancestors: Regex-Tests-Core-pre.7

Tests lookbehinds. Complements Regex-Core-ct.56.

=============== Diff against Regex-Tests-Core-pre.7 ===============

Item was added:
+ ----- Method: RxParserTest>>testNegativeLookbehind (in category 'tests') -----
+ testNegativeLookbehind
+ self assert: ['C' matchesRegex: '.*(?<!!AB)C'].
+ self assert: ['BC' matchesRegex: '.*(?<!!AB)C'].
+ self deny: ['ABC' matchesRegex: '.*(?<!!AB)C'].
+ self deny: ['ABCD' matchesRegex: '.*(?<!!AB)C'].!

Item was added:
+ ----- Method: RxParserTest>>testPositiveLookbehind (in category 'tests') -----
+ testPositiveLookbehind
+ self deny: ['A' matchesRegex: '.*(?<=AB)C'].
+ self deny: ['AB' matchesRegex: '.*(?<=AB)C'].
+ self assert: ['ABC' matchesRegex: '.*(?<=AB)C'].
+ self deny: ['ABC' matchesRegex: '.*(?<=XAB)C'].
+ self assert: #('C') asSet equals: ('ABC' allRegexMatches: '(?<=AB+)\w') asSet.!