[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-smalltalk] sunit log error?
From: |
Paolo Bonzini |
Subject: |
Re: [Help-smalltalk] sunit log error? |
Date: |
Sun, 13 Oct 2013 08:59:35 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130923 Thunderbird/17.0.9 |
Il 12/10/2013 21:17, Holger Hans Peter Freyther ha scritto:
> On Sat, Oct 12, 2013 at 09:00:27PM +0200, Holger Hans Peter Freyther wrote:
>> On Sat, Oct 12, 2013 at 06:30:19PM +0200, Paolo Bonzini wrote:
>>> Can you guys look at what caused the double sharp? :)
>>
>> probably 0f550663b46a9785c353dbab8b2721f8b5620ce0 :)
>
> not beautiful... but what about this?
>
>
> diff --git a/packages/sunit/SUnit.st b/packages/sunit/SUnit.st
> index 38a872b..871f541 100644
> --- a/packages/sunit/SUnit.st
> +++ b/packages/sunit/SUnit.st
> @@ -1121,8 +1121,10 @@ When you are writing a test case method, send #assert:
> aBoolean when you want to
> <category: 'Printing'>
> aStream
> nextPutAll: self class printString;
> - nextPutAll: '>>#';
> - nextPutAll: testSelector printString.
> + nextPutAll: '>>';
> + nextPutAll: (testSelector isNil
> + ifTrue: [#nil]
> + ifFalse: [testSelector]) printString.
I think you do not need this, ">>nil" is fine.
Paolo