The Trunk: SUnit-cmm.97.mcz

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

The Trunk: SUnit-cmm.97.mcz

commits-2
Chris Muller uploaded a new version of SUnit to project The Trunk:
http://source.squeak.org/trunk/SUnit-cmm.97.mcz

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

Name: SUnit-cmm.97
Author: cmm
Time: 8 November 2013, 10:24:49.44 am
UUID: d53f9dfb-5ea8-499e-bb2e-9b76450607cf
Ancestors: SUnit-fbs.96

Added a test for MessageSend>>#numArgs.

=============== Diff against SUnit-fbs.96 ===============

Item was added:
+ TestCase subclass: #MessageSendTest
+ instanceVariableNames: ''
+ classVariableNames: ''
+ poolDictionaries: ''
+ category: 'SUnit-Kernel'!

Item was added:
+ ----- Method: MessageSendTest>>testNumArgs (in category 'as yet unclassified') -----
+ testNumArgs
+ self
+ assert:
+ (MessageSend
+ receiver: Dictionary new
+ selector: #at:put:) numArgs = 2 ;
+ assert:
+ (MessageSend
+ receiver: 3
+ selector: #sqrt) numArgs = 0!


Reply | Threaded
Open this post in threaded view
|

Re: The Trunk: SUnit-cmm.97.mcz

Frank Shearar-3
On 8 November 2013 16:24,  <[hidden email]> wrote:

> Chris Muller uploaded a new version of SUnit to project The Trunk:
> http://source.squeak.org/trunk/SUnit-cmm.97.mcz
>
> ==================== Summary ====================
>
> Name: SUnit-cmm.97
> Author: cmm
> Time: 8 November 2013, 10:24:49.44 am
> UUID: d53f9dfb-5ea8-499e-bb2e-9b76450607cf
> Ancestors: SUnit-fbs.96
>
> Added a test for MessageSend>>#numArgs.
>
> =============== Diff against SUnit-fbs.96 ===============
>
> Item was added:
> + TestCase subclass: #MessageSendTest
> +       instanceVariableNames: ''
> +       classVariableNames: ''
> +       poolDictionaries: ''
> +       category: 'SUnit-Kernel'!
>
> Item was added:
> + ----- Method: MessageSendTest>>testNumArgs (in category 'as yet unclassified') -----
> + testNumArgs
> +       self
> +                assert:
> +                       (MessageSend
> +                               receiver: Dictionary new
> +                               selector: #at:put:) numArgs = 2 ;
> +                assert:
> +                       (MessageSend
> +                               receiver: 3
> +                               selector: #sqrt) numArgs = 0!

I like that you've written tests for this. But (a) I'd rather see
#assert:equals: because its error messages are much better and (b)
this belongs in KernelTests, not SUnit.

frank

Reply | Threaded
Open this post in threaded view
|

Re: The Trunk: SUnit-cmm.97.mcz

Chris Muller-3
Ok.  I've made the change to use assert:equals: in my image and will
get it out the next time I commit; since I've already committed this
twice today and I might be having some more changes to this package
soon.

On Fri, Nov 8, 2013 at 10:29 AM, Frank Shearar <[hidden email]> wrote:

> On 8 November 2013 16:24,  <[hidden email]> wrote:
>> Chris Muller uploaded a new version of SUnit to project The Trunk:
>> http://source.squeak.org/trunk/SUnit-cmm.97.mcz
>>
>> ==================== Summary ====================
>>
>> Name: SUnit-cmm.97
>> Author: cmm
>> Time: 8 November 2013, 10:24:49.44 am
>> UUID: d53f9dfb-5ea8-499e-bb2e-9b76450607cf
>> Ancestors: SUnit-fbs.96
>>
>> Added a test for MessageSend>>#numArgs.
>>
>> =============== Diff against SUnit-fbs.96 ===============
>>
>> Item was added:
>> + TestCase subclass: #MessageSendTest
>> +       instanceVariableNames: ''
>> +       classVariableNames: ''
>> +       poolDictionaries: ''
>> +       category: 'SUnit-Kernel'!
>>
>> Item was added:
>> + ----- Method: MessageSendTest>>testNumArgs (in category 'as yet unclassified') -----
>> + testNumArgs
>> +       self
>> +                assert:
>> +                       (MessageSend
>> +                               receiver: Dictionary new
>> +                               selector: #at:put:) numArgs = 2 ;
>> +                assert:
>> +                       (MessageSend
>> +                               receiver: 3
>> +                               selector: #sqrt) numArgs = 0!
>
> I like that you've written tests for this. But (a) I'd rather see
> #assert:equals: because its error messages are much better and (b)
> this belongs in KernelTests, not SUnit.
>
> frank
>

Reply | Threaded
Open this post in threaded view
|

Re: The Trunk: SUnit-cmm.97.mcz

Frank Shearar-3
Cool, thanks!

frank

On 8 November 2013 22:00, Chris Muller <[hidden email]> wrote:

> Ok.  I've made the change to use assert:equals: in my image and will
> get it out the next time I commit; since I've already committed this
> twice today and I might be having some more changes to this package
> soon.
>
> On Fri, Nov 8, 2013 at 10:29 AM, Frank Shearar <[hidden email]> wrote:
>> On 8 November 2013 16:24,  <[hidden email]> wrote:
>>> Chris Muller uploaded a new version of SUnit to project The Trunk:
>>> http://source.squeak.org/trunk/SUnit-cmm.97.mcz
>>>
>>> ==================== Summary ====================
>>>
>>> Name: SUnit-cmm.97
>>> Author: cmm
>>> Time: 8 November 2013, 10:24:49.44 am
>>> UUID: d53f9dfb-5ea8-499e-bb2e-9b76450607cf
>>> Ancestors: SUnit-fbs.96
>>>
>>> Added a test for MessageSend>>#numArgs.
>>>
>>> =============== Diff against SUnit-fbs.96 ===============
>>>
>>> Item was added:
>>> + TestCase subclass: #MessageSendTest
>>> +       instanceVariableNames: ''
>>> +       classVariableNames: ''
>>> +       poolDictionaries: ''
>>> +       category: 'SUnit-Kernel'!
>>>
>>> Item was added:
>>> + ----- Method: MessageSendTest>>testNumArgs (in category 'as yet unclassified') -----
>>> + testNumArgs
>>> +       self
>>> +                assert:
>>> +                       (MessageSend
>>> +                               receiver: Dictionary new
>>> +                               selector: #at:put:) numArgs = 2 ;
>>> +                assert:
>>> +                       (MessageSend
>>> +                               receiver: 3
>>> +                               selector: #sqrt) numArgs = 0!
>>
>> I like that you've written tests for this. But (a) I'd rather see
>> #assert:equals: because its error messages are much better and (b)
>> this belongs in KernelTests, not SUnit.
>>
>> frank
>>
>