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("无闻")