From 93066f92c615ab6c90523b3d4fe34379d2dea818 Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Fri, 24 May 2019 07:40:12 -0600 Subject: [PATCH] =?UTF-8?q?Fix=20typo=20in=20viper=5Ftest.go:=20lagrenum?= =?UTF-8?q?=20=E2=86=92=20largenum?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- viper_test.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/viper_test.go b/viper_test.go index f43a38b..74f42fb 100644 --- a/viper_test.go +++ b/viper_test.go @@ -1116,7 +1116,7 @@ func TestWriteConfigYAML(t *testing.T) { var yamlMergeExampleTgt = []byte(` hello: pop: 37890 - lagrenum: 765432101234567 + largenum: 765432101234567 num2pow63: 9223372036854775808 world: - us @@ -1128,7 +1128,7 @@ hello: var yamlMergeExampleSrc = []byte(` hello: pop: 45000 - lagrenum: 7654321001234567 + largenum: 7654321001234567 universe: - mw - ad @@ -1150,8 +1150,8 @@ func TestMergeConfig(t *testing.T) { t.Fatalf("pop != 37890, = %d", pop) } - if pop := v.GetInt64("hello.lagrenum"); pop != int64(765432101234567) { - t.Fatalf("int64 lagrenum != 765432101234567, = %d", pop) + if pop := v.GetInt64("hello.largenum"); pop != int64(765432101234567) { + t.Fatalf("int64 largenum != 765432101234567, = %d", pop) } if pop := v.GetUint("hello.pop"); pop != 37890 { @@ -1186,8 +1186,8 @@ func TestMergeConfig(t *testing.T) { t.Fatalf("pop != 45000, = %d", pop) } - if pop := v.GetInt64("hello.lagrenum"); pop != int64(7654321001234567) { - t.Fatalf("int64 lagrenum != 7654321001234567, = %d", pop) + if pop := v.GetInt64("hello.largenum"); pop != int64(7654321001234567) { + t.Fatalf("int64 largenum != 7654321001234567, = %d", pop) } if world := v.GetStringSlice("hello.world"); len(world) != 4 { @@ -1251,7 +1251,7 @@ func TestMergeConfigMap(t *testing.T) { } assert := func(i int) { - large := v.GetInt("hello.lagrenum") + large := v.GetInt("hello.largenum") pop := v.GetInt("hello.pop") if large != 765432101234567 { t.Fatal("Got large num:", large)