From 3fdaf5cea8d23107b993d363e98992fa529dd713 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Mon, 5 May 2014 22:09:56 -0500 Subject: Dump non-zero len and cap for applicable types. Closes #16. --- spew/spew_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'spew/spew_test.go') 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, "{{} [] [] map[]}"}, {scsMaxDepth, fCSFdump, "", dt, "(spew_test.depthTester) {\n" + " ic: (spew_test.indirCir1) {\n \n },\n" + - " arr: ([1]string) {\n \n },\n" + - " slice: ([]string) {\n \n },\n" + - " m: (map[string]int) {\n \n }\n}\n"}, + " arr: ([1]string) (len=1 cap=1) {\n \n },\n" + + " slice: ([]string) (len=1 cap=1) {\n \n },\n" + + " m: (map[string]int) (len=1) {\n \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"}, -- cgit v1.2.3