Skip to content

Commit

Permalink
result printing: display variables of summary, remove redundant #asSt…
Browse files Browse the repository at this point in the history
…ring override
  • Loading branch information
LinqLover committed Dec 21, 2024
1 parent 5d187c9 commit 4ac0b31
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 10 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"instance" : {
"=" : "NA 7/16/2015 12:38",
"applyColorRule:" : "NA 7/16/2015 15:31",
"asString" : "AT 5/8/2008 10:07",
"cacheColor" : "topa 4/19/2010 10:09",
"cacheValueAsString" : "AT 5/26/2008 23:54",
"colorBlack" : "AT 5/17/2008 16:46",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@ displaying
formatAsSummary

self valueFormatRule: [ :v |
v rounded asString,
' occurence', ((v = 1) ifTrue: [''] ifFalse: ['s'])].
| format |
format := v rounded asString,
' occurence', ((v = 1) ifTrue: [''] ifFalse: ['s']).
(self testObject variables select: [:variable | self selectForSummary: variable]) ifNotEmpty: [:variables |
format := format , (' ({1})' format: {(variables collect: #variable) asCommaStringAnd})].
format].
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"instance" : {
"condition:" : "AT 2/2/2008 11:24",
"defaultCondition" : "AT 5/8/2008 12:21",
"formatAsSummary" : "NR 1/28/2008 14:25",
"formatAsSummary" : "ct 12/21/2024 19:50",
"hasDetails" : "ct 12/19/2024 04:41",
"initializeFormatRule" : "AT 2/2/2008 12:13",
"initializeShowRule" : "AT 2/2/2008 12:13",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ asSL2ResultsFor: aSL2Test
(testMethod asSL2ResultFor: aSL2Test with:
(testMethod resultOf: self summarizedTest))].
(self testObject variables
anySatisfy: [:testMethod | self selectForSummary: testMethod])
anySatisfy: [:variable | self selectForSummary: variable])
ifTrue:
[stream nextPut:
(self testObject asSL2ResultFor: aSL2Test with: self)]].
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"class" : {
},
"instance" : {
"asSL2ResultsFor:" : "ct 12/19/2024 04:48" } }
"asSL2ResultsFor:" : "ct 12/21/2024 19:47" } }

0 comments on commit 4ac0b31

Please sign in to comment.