The Inbox: Regex-Tests-Core-ct.8.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

The Inbox: Regex-Tests-Core-ct.8.mcz

commits-2
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).*'].!


Reply | Threaded
Open this post in threaded view
|

Re: The Inbox: Regex-Tests-Core-ct.8.mcz

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


<[hidden email]> 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).*'].!




Reply | Threaded
Open this post in threaded view
|

Re: The Inbox: Regex-Tests-Core-ct.8.mcz

Levente Uzonyi
It's just the fileout format. There are single exlamation marks at the
end of each method.

Levente

On Sat, 7 Mar 2020, Jakob Reschke wrote:

> Why are there two exclamation marks? Or is this just some artifact of the diff print rooted in the file out format?
>
>
> <[hidden email]> 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).*'].!
>
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: The Inbox: Regex-Tests-Core-ct.8.mcz

Christoph Thiede

Not that weird as the escape sequence for exclamation marks in LaTeX:


Von: Squeak-dev <[hidden email]> im Auftrag von Levente Uzonyi <[hidden email]>
Gesendet: Samstag, 7. März 2020 11:09:22
An: The general-purpose Squeak developers list
Betreff: Re: [squeak-dev] The Inbox: Regex-Tests-Core-ct.8.mcz
 
It's just the fileout format. There are single exlamation marks at the
end of each method.

Levente

On Sat, 7 Mar 2020, Jakob Reschke wrote:

> Why are there two exclamation marks? Or is this just some artifact of the diff print rooted in the file out format?
>
>
> <[hidden email]> 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).*'].!
>
>
>
>


Carpe Squeak!
Reply | Threaded
Open this post in threaded view
|

Re: The Inbox: Regex-Tests-Core-ct.8.mcz

timrowledge
In reply to this post by Levente Uzonyi


> On 2020-03-07, at 2:09 AM, Levente Uzonyi <[hidden email]> wrote:
>
> It's just the fileout format. There are single exlamation marks at the end of each method.

It's the escape!


tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
Success always occurs in private, and failure in full view.