From 2f8b92da3403eb7f58a86200c395ae257d8ed7cf Mon Sep 17 00:00:00 2001 From: Vladimir Kuznetsov Date: Sun, 1 Mar 2020 08:56:17 +0000 Subject: [PATCH] Update fmt_test.go - changed default value --- varfmt/fmt_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/varfmt/fmt_test.go b/varfmt/fmt_test.go index a0f9f2b..ab5341b 100644 --- a/varfmt/fmt_test.go +++ b/varfmt/fmt_test.go @@ -11,8 +11,8 @@ import ( func TestFormat(t *testing.T) { s := make([]interface{}, 1002) s[10] = 1 - s[100] = 1 - s[1000] = 1 + s[100] = 2 + s[1000] = 3 for _, tc := range []struct { format string @@ -57,12 +57,12 @@ func TestFormat(t *testing.T) { { format: "{100}", args: s[:101], - result: "1", + result: "2", }, { format: "{1000}", args: s[:1001], - result: "1", + result: "3", }, } { t.Run(tc.result, func(t *testing.T) {