[squeak-dev] The Inbox: Regex-Tests-Core-ct.21.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Aug 23 16:58:42 UTC 2021


A new version of Regex-Tests-Core was added to project The Inbox:
http://source.squeak.org/inbox/Regex-Tests-Core-ct.21.mcz

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

Name: Regex-Tests-Core-ct.21
Author: ct
Time: 23 August 2021, 6:58:40.775768 pm
UUID: 0a406c4c-99bb-d845-a7d9-29ccad2a8717
Ancestors: Regex-Tests-Core-mt.16

Adds regression tests for quantifier sequences.

Note that in theory, it could be possible to support things like a++, but this would require a redesign of the parser, so for the moment, let's be at least consistent with this limitation. (In the current trunk, 'a+{2}' asRegex matches: 'a{2}'.)

=============== Diff against Regex-Tests-Core-mt.16 ===============

Item was added:
+ ----- Method: RxParserTest>>testQuantifierSequence (in category 'tests') -----
+ testQuantifierSequence
+ 
+ 	self
+ 		should: ['a??' asRegex] raise: RegexSyntaxError;
+ 		should: ['a++' asRegex] raise: RegexSyntaxError;
+ 		should: ['a**' asRegex] raise: RegexSyntaxError;
+ 		should: ['a{1,2}{3,4}' asRegex] raise: RegexSyntaxError.
+ 	
+ 	self
+ 		should: ['a?{1,2}' asRegex] raise: RegexSyntaxError.!



More information about the Squeak-dev mailing list