diff options
| author | Josh Rickmar <[email protected]> | 2014-05-05 22:09:56 -0500 |
|---|---|---|
| committer | Dave Collins <[email protected]> | 2014-05-05 22:39:05 -0500 |
| commit | 3fdaf5cea8d23107b993d363e98992fa529dd713 (patch) | |
| tree | 621df5e9073ac8733da24f852c6ce3df8c135fc7 /spew/spew_test.go | |
| parent | 9ed19f9b0c9116d712e32dee78f1704cb9fc5b02 (diff) | |
Dump non-zero len and cap for applicable types.
Closes #16.
Diffstat (limited to 'spew/spew_test.go')
| -rw-r--r-- | spew/spew_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spew/spew_test.go b/spew/spew_test.go index bbb531b..3831ed2 100644 --- a/spew/spew_test.go +++ b/spew/spew_test.go @@ -182,12 +182,12 @@ func initSpewTests() { {scsMaxDepth, fCSFprint, "", dt, "{{<max>} [<max>] [<max>] map[<max>]}"}, {scsMaxDepth, fCSFdump, "", dt, "(spew_test.depthTester) {\n" + " ic: (spew_test.indirCir1) {\n <max depth reached>\n },\n" + - " arr: ([1]string) {\n <max depth reached>\n },\n" + - " slice: ([]string) {\n <max depth reached>\n },\n" + - " m: (map[string]int) {\n <max depth reached>\n }\n}\n"}, + " arr: ([1]string) (len=1 cap=1) {\n <max depth reached>\n },\n" + + " slice: ([]string) (len=1 cap=1) {\n <max depth reached>\n },\n" + + " m: (map[string]int) (len=1) {\n <max depth reached>\n }\n}\n"}, {scsContinue, fCSFprint, "", ts, "(stringer test) test"}, {scsContinue, fCSFdump, "", ts, "(spew_test.stringer) " + - "(stringer test) \"test\"\n"}, + "(len=4) (stringer test) \"test\"\n"}, {scsContinue, fCSFprint, "", te, "(error: 10) 10"}, {scsContinue, fCSFdump, "", te, "(spew_test.customError) " + "(error: 10) 10\n"}, |
