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

Jakob Reschke forums.jakob at resfarm.de
Sat Mar 7 09:46:46 UTC 2020


Why are there two exclamation marks? Or is this just some artifact of the
diff print rooted in the file out format?


<commits at source.squeak.org> schrieb am Fr., 6. März 2020, 19:15:

> Christoph Thiede uploaded a new version of Regex-Tests-Core to project The
> Inbox:
> http://source.squeak.org/inbox/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).*'].!
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200307/db71c082/attachment.html>


More information about the Squeak-dev mailing list