How to rewrite self should: into self assert:

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

How to rewrite self should: into self assert:

stepharo
Hi guys

I tried to tools of mark and failed miserably.
Any suggestion is welcome.

Stef

Reply | Threaded
Open this post in threaded view
|

Re: How to rewrite self should: into self assert:

Denis Kudriashov
I would like to see how you do this.

2016-03-26 9:41 GMT+01:00 stepharo <[hidden email]>:
Hi guys

I tried to tools of mark and failed miserably.
Any suggestion is welcome.

Stef

Reply | Threaded
Open this post in threaded view
|

Re: How to rewrite self should: into self assert:

Mark Rizun
Hi, Denis.

We discussed this with Stef, created the rule for such transformation and successfully applied it to many methods :)
The rule basically is: 
    self should: [ ``@object ] --> self assert: ``@object

Cheers,
Mark

2016-03-27 21:22 GMT+03:00 Denis Kudriashov <[hidden email]>:
I would like to see how you do this.

2016-03-26 9:41 GMT+01:00 stepharo <[hidden email]>:
Hi guys

I tried to tools of mark and failed miserably.
Any suggestion is welcome.

Stef


Reply | Threaded
Open this post in threaded view
|

Re: How to rewrite self should: into self assert:

Denis Kudriashov

2016-03-27 20:45 GMT+02:00 Mark Rizun <[hidden email]>:
Hi, Denis.

We discussed this with Stef, created the rule for such transformation and successfully applied it to many methods :)
The rule basically is: 
    self should: [ ``@object ] --> self assert: ``@object

Nice. Thank's
Reply | Threaded
Open this post in threaded view
|

Re: How to rewrite self should: into self assert:

stepharo
I gave this rule and assert: = -> assert: equals: to yuriy for inclusion in QA


Le 27/3/16 21:04, Denis Kudriashov a écrit :

2016-03-27 20:45 GMT+02:00 Mark Rizun <[hidden email]>:
Hi, Denis.

We discussed this with Stef, created the rule for such transformation and successfully applied it to many methods :)
The rule basically is: 
    self should: [ ``@object ] --> self assert: ``@object

Nice. Thank's

Reply | Threaded
Open this post in threaded view
|

Re: How to rewrite self should: into self assert:

Uko2
I have not seen that you gave this to me :). Just make sure that it’s in Pharo, and QA should pick it up.

Cheers.
Uko

On 28 Mar 2016, at 10:31, stepharo <[hidden email]> wrote:

I gave this rule and assert: = -> assert: equals: to yuriy for inclusion in QA


Le 27/3/16 21:04, Denis Kudriashov a écrit :

2016-03-27 20:45 GMT+02:00 Mark Rizun <[hidden email]>:
Hi, Denis.

We discussed this with Stef, created the rule for such transformation and successfully applied it to many methods :)
The rule basically is: 
    self should: [ ``@object ] --> self assert: ``@object

Nice. Thank's


Reply | Threaded
Open this post in threaded view
|

Re: How to rewrite self should: into self assert:

stepharo


Le 28/3/16 10:41, Yuriy Tymchuk a écrit :
I have not seen that you gave this to me :). Just make sure that it’s in Pharo, and QA should pick it up.

Cheers.
Uko

On 28 Mar 2016, at 10:31, stepharo <[hidden email]> wrote:

I gave this rule and assert: = -> assert: equals: to yuriy for inclusion in QA


Le 27/3/16 21:04, Denis Kudriashov a écrit :

2016-03-27 20:45 GMT+02:00 Mark Rizun <[hidden email]>:
Hi, Denis.

We discussed this with Stef, created the rule for such transformation and successfully applied it to many methods :)
The rule basically is: 
    self should: [ ``@object ] --> self assert: ``@object

Nice. Thank's




MyRuleAssert.st (2K) Download Attachment