[squeak-dev] The Trunk: Regex-Tests-Core-ct.27.mcz
commits at source.squeak.org
commits at source.squeak.org
Wed Oct 5 18:09:36 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.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]').
- !
More information about the Squeak-dev
mailing list
|