From e2e901b1d9a3a6350e7c66c44e8a93ec6e759981 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 21 Dec 2014 08:10:34 -0500 Subject: [PATCH] fix test cases --- ini_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ini_test.go b/ini_test.go index 7d18035..6596824 100644 --- a/ini_test.go +++ b/ini_test.go @@ -145,6 +145,7 @@ func Test_Values(t *testing.T) { Convey("Get values in default section", func() { sec := cfg.Section("") So(sec, ShouldNotBeNil) + So(sec.Key("NAME").Value(), ShouldEqual, "ini") So(sec.Key("NAME").String(), ShouldEqual, "ini") So(sec.Key("NAME").Comment, ShouldEqual, "; Package name") So(sec.Key("IMPORT_PATH").String(), ShouldEqual, "gopkg.in/ini.v0") @@ -255,6 +256,10 @@ func Test_Values(t *testing.T) { } }) + Convey("Get key hash", func() { + cfg.Section("").KeysHash() + }) + Convey("Set key value", func() { k := cfg.Section("author").Key("NAME") k.SetValue("无闻")