| Newsgroups |
gmane.comp.lang.smalltalk.squeak.general |
| Message-ID |
<[email protected]> |
Marcel Taeumel uploaded a new version of SUnit to project The Trunk:
http://source.squeak.org/trunk/SUnit-mt.151.mcz
==================== Summary ====================
Name: SUnit-mt.151
Author: mt
Time: 28 May 2026, 3:42:54.245366 pm
UUID: 89231dba-e69c-784d-bb6b-37b5898adcc7
Ancestors: SUnit-ct.150
Fix singular/plural pharsing in test runner.
=============== Diff against SUnit-ct.150 ===============
Item was changed:
----- Method: TestResult>>printOn: (in category 'printing') -----
printOn: aStream
aStream
nextPutAll: self runCount printString;
nextPutAll: ' run in ';
nextPutAll: (Duration milliSeconds: self duration) printString;
nextPutAll: ', ';
nextPutAll: self expectedPassCount printString;
+ nextPutAll: (self expectedPassCount = 1 ifTrue: [' pass, '] ifFalse: [' passes, ']);
- nextPutAll: ' passes, ';
nextPutAll: self expectedDefectCount printString;
+ nextPutAll: (self expectedDefectCount = 1 ifTrue: [' expected failure, '] ifFalse: [' expected failures, ']);
- nextPutAll:' expected failures, ';
nextPutAll: self unexpectedFailureCount printString;
+ nextPutAll: (self unexpectedFailureCount = 1 ifTrue: [' failure'] ifFalse: [' failures']).
- nextPutAll: ' failures'.
timeouts ifNotEmpty:
+ [aStream
+ nextPutAll: ' ('; print: timeouts size;
+ nextPutAll: (timeouts size = 1 ifTrue: [' timeout)'] ifFalse: [' timeouts)'])].
- [aStream nextPutAll: ' ('; print: timeouts size; nextPutAll: ' timeouts)'].
aStream
nextPutAll: ', ';
nextPutAll: self unexpectedErrorCount printString;
+ nextPutAll: (self unexpectedErrorCount = 1 ifTrue: [' error, '] ifFalse: [' errors, ']);
- nextPutAll:' errors, ';
nextPutAll: self unexpectedPassCount printString;
+ nextPutAll: (self unexpectedPassCount = 1 ifTrue: [' unexpected pass'] ifFalse: [' unexpected passes']).!
- nextPutAll:' unexpected passes'.!
Squeak-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]