File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,11 @@ public enum _DebuggerSupport {
77
77
case . set:
78
78
fallthrough
79
79
case . tuple:
80
- return " \( Int ( mirror. children. count) ) elements "
80
+ if count == 1 {
81
+ return " 1 element "
82
+ } else {
83
+ return " \( count) elements "
84
+ }
81
85
case . `struct`:
82
86
fallthrough
83
87
case . `enum`:
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ StringForPrintObjectTests.test("Array") {
44
44
45
45
StringForPrintObjectTests . test ( " Dictionary " ) {
46
46
let printed = _DebuggerSupport. stringForPrintObject ( [ 1 : 2 ] )
47
- expectEqual ( printed, " ▿ 1 elements \n ▿ 0 : 2 elements \n - .0 : 1 \n - .1 : 2 \n " )
47
+ expectEqual ( printed, " ▿ 1 element \n ▿ 0 : 2 elements \n - .0 : 1 \n - .1 : 2 \n " )
48
48
}
49
49
50
50
StringForPrintObjectTests . test ( " NilOptional " ) {
You can’t perform that action at this time.
0 commit comments