[squeak-dev] The Trunk: SUnit-eem.91.mcz

Levente Uzonyi leves at elte.hu
Wed Feb 6 13:37:46 UTC 2013


Wouldn't it be better to use #print:?

E.g.:

 	aStream
 		print: self class;
 		nextPutAll: '>>';
 		print: testSelector


Levente


On Wed, 6 Feb 2013, commits at source.squeak.org wrote:

> Eliot Miranda uploaded a new version of SUnit to project The Trunk:
> http://source.squeak.org/trunk/SUnit-eem.91.mcz
>
> ==================== Summary ====================
>
> Name: SUnit-eem.91
> Author: eem
> Time: 5 February 2013, 9:45:22.157 pm
> UUID: 563010a6-5bbc-4312-ae7c-b09410b24fad
> Ancestors: SUnit-cmm.90
>
> Robust testCase printing.  i.e. TestCase new asString should
> not raise an error.
>
> =============== Diff against SUnit-cmm.90 ===============
>
> Item was changed:
>  ----- Method: TestCase>>printOn: (in category 'printing') -----
>  printOn: aStream
>
> + 	testSelector
> + 		ifNil: [super printOn: aStream]
> + 		ifNotNil:
> + 			[aStream
> + 				nextPutAll: self class printString;
> + 				nextPutAll: '>>#';
> + 				nextPutAll: testSelector]	!
> - 	aStream
> - 		nextPutAll: self class printString;
> - 		nextPutAll: '>>#';
> - 		nextPutAll: testSelector
> - 			!
>
>
>


More information about the Squeak-dev mailing list