[squeak-dev] The Trunk: Regex-Tests-Core-ct.17.mcz
commits at source.squeak.org
commits at source.squeak.org
Wed Oct 5 18:08:08 UTC 2022
Christoph Thiede uploaded a new version of Regex-Tests-Core to project The Trunk:
http://source.squeak.org/trunk/Regex-Tests-Core-ct.17.mcz
==================== Summary ====================
Name: Regex-Tests-Core-ct.17
Author: ct
Time: 23 August 2021, 5:24:52.445768 pm
UUID: 131a5a95-99a3-9049-ab11-27a7798da796
Ancestors: Regex-Tests-Core-mt.16
Adds a regression test for parsing regular expressions with nested quantifiers. Thanks to Conrad Halle for reporting this bug!
=============== Diff against Regex-Tests-Core-mt.16 ===============
Item was added:
+ ----- Method: RxParserTest>>testNestedQuantifiers (in category 'tests') -----
+ testNestedQuantifiers
+
+ self deny: ('' matchesRegex: '(ab+){2,}').
+ self deny: ('ab' matchesRegex: '(ab+){2,}').
+ self deny: ('aba' matchesRegex: '(ab+){2,}').
+ self assert: ('abab' matchesRegex: '(ab+){2,}').
+ self assert: ('abbabbb' matchesRegex: '(ab+){2,}').
+ self assert: ('abbabbbab' matchesRegex: '(ab+){2,}').!
More information about the Squeak-dev
mailing list
|