[squeak-dev] The Trunk: Regex-Tests-Core-ct.8.mcz

commits at source.squeak.org commits at source.squeak.org
Fri May 8 20:24:22 UTC 2020


Nicolas Cellier uploaded a new version of Regex-Tests-Core to project The Trunk:
http://source.squeak.org/trunk/Regex-Tests-Core-ct.8.mcz

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

Name: Regex-Tests-Core-ct.8
Author: ct
Time: 6 March 2020, 7:15:36.127601 pm
UUID: a4017713-04c0-c149-a7e1-43b1b62012e7
Ancestors: Regex-Tests-Core-pre.7

Adds and improves tests for positive and negative lookaheads. Complements Regex-Core-ct.55.

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

Item was removed:
- ----- Method: RxParserTest>>testLookaround (in category 'tests') -----
- testLookaround
- 	self assert: ('A'   matchesRegex: '(?!!ABC).*').
- 	self assert: ('AB'  matchesRegex: '(?!!ABC).*').
- 	self deny:   ('ABC' matchesRegex: '(?!!ABC).*').!

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

Item was added:
+ ----- Method: RxParserTest>>testPositiveLookahead (in category 'tests') -----
+ testPositiveLookahead
+ 	self deny: ['A' matchesRegex: 'A(?=BC).*'].
+ 	self deny: ['AB' matchesRegex: 'A(?=BC).*'].
+ 	self assert: ['ABC' matchesRegex: 'A(?=BC).*'].
+ 	self deny: ['ABC' matchesRegex: 'A(?=BCD).*'].!



More information about the Squeak-dev mailing list