Christoph Thiede uploaded a new version of 61Deprecated to project The Trunk:
http://source.squeak.org/trunk/61Deprecated-ct.2.mcz
==================== Summary ====================
Name: 61Deprecated-ct.2
Author: ct
Time: 5 October 2022, 8:11:14.150966 pm
UUID: 549f51c0-69e2-d149-8d82-13b9b0ef3c92
Ancestors: 61Deprecated-mt.1
Complements Regex-Core-ct.78.
=============== Diff against 61Deprecated-mt.1 ===============
Item was added:
+ ----- Method: RxsPredicate class>>forEscapedLetter: (in category '*61Deprecated-instance creation') -----
+ forEscapedLetter: aCharacter
+ "Return a predicate instance for the given character, or nil if there's no such predicate."
+
+ self deprecated.
+ ^ RxParser new
+ initialize: {aCharacter} readStream;
+ backslashPredicate!
Christoph Thiede uploaded a new version of Regex-Tests-Core to project The Trunk:
http://source.squeak.org/trunk/Regex-Tests-Core-ct.27.mcz
==================== Summary ====================
Name: Regex-Tests-Core-ct.27
Author: ct
Time: 21 October 2021, 1:09:14.496424 am
UUID: c88b455a-e0cd-064e-9ecf-abde3ab386e9
Ancestors: Regex-Tests-Core-mt.16
Merges two tests that are no-longer to do.
=============== Diff against Regex-Tests-Core-mt.16 ===============
Item was changed:
----- Method: RxParserTest>>testSpecialCharacterInSetRange (in category 'tests') -----
testSpecialCharacterInSetRange
"self debug: #testSpecialCharacterInSetRange"
"Special characters within a set are `^', `-', and `]' that closes the
set. Below are the examples of how to literally use them in a set:
[01^] -- put the caret anywhere except the beginning
[01-] -- put the dash as the last character
[]01] -- put the closing bracket as the first character
[^]01] (thus, empty and universal sets cannot be specified)"
self assert: ('0' matchesRegex: '[01^]').
self assert: ('1' matchesRegex: '[01^]').
self assert: ('^' matchesRegex: '[01^]').
self deny: ('0' matchesRegex: '[^01]').
self deny: ('1' matchesRegex: '[^01]').
"[^abc] means that everything except abc is matche"
self assert: ('^' matchesRegex: '[^01]').
+
+ "[1-7] is the range of all digits between 1 and 7"
+ self assert: ('3' matchesRegex: '[1-7]').!
- !
Item was removed:
- ----- Method: RxParserTest>>toDotestSpecialCharacterInSetRange (in category 'tests') -----
- toDotestSpecialCharacterInSetRange
- "self debug: #testSpecialCharacterInSetRange"
-
- "Special characters within a set are `^', `-', and `]' that closes the
- set. Below are the examples of how to literally use them in a set:
- [01^] -- put the caret anywhere except the beginning
- [01-] -- put the dash as the last character
- []01] -- put the closing bracket as the first character
- [^]01] (thus, empty and universal sets cannot be specified)"
-
- self assert: ('0' matchesRegex: '[01^]').
-
- self assert: ('0' matchesRegex: '[0-9]').
- !
Christoph Thiede uploaded a new version of Regex-Tests-Core to project The Trunk:
http://source.squeak.org/trunk/Regex-Tests-Core-ct.25.mcz
==================== Summary ====================
Name: Regex-Tests-Core-ct.25
Author: ct
Time: 20 October 2021, 4:32:55.866482 pm
UUID: 6da8bf34-cd74-cf41-b7ce-32ec4686dcd0
Ancestors: Regex-Tests-Core-mt.16
Fixes #testOptionalLookbehind2. It still fails, but this time for the real bug in the matcher instead of a lowercase slip in the test.
=============== Diff against Regex-Tests-Core-mt.16 ===============
Item was changed:
----- Method: RxParserTest>>testOptionalLookbehind2 (in category 'tests') -----
testOptionalLookbehind2
+ self assert: [('AB' allRegexMatches: '((?<=A)B)?') asArray = #('A')].!
- self assert: [('AB' allRegexMatches: '((?<=a)b)?') asArray = #('A')].!