diff options
Diffstat (limited to 'vendor/github.com/go-ini/ini/ini_test.go')
-rw-r--r-- | vendor/github.com/go-ini/ini/ini_test.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/github.com/go-ini/ini/ini_test.go b/vendor/github.com/go-ini/ini/ini_test.go index 7a1efe4ec..3e6992d3f 100644 --- a/vendor/github.com/go-ini/ini/ini_test.go +++ b/vendor/github.com/go-ini/ini/ini_test.go @@ -268,6 +268,19 @@ create_repo="创建了仓库 <a href=\"%s\">%s</a>"`)) }) }) + Convey("Unescape comment symbols inside value", func() { + f, err := ini.LoadSources(ini.LoadOptions{ + IgnoreInlineComment: true, + UnescapeValueCommentSymbols: true, + }, []byte(` +key = test value <span style="color: %s\; background: %s">more text</span> +`)) + So(err, ShouldBeNil) + So(f, ShouldNotBeNil) + + So(f.Section("").Key("key").String(), ShouldEqual, `test value <span style="color: %s; background: %s">more text</span>`) + }) + Convey("Allow unparseable sections", func() { f, err := ini.LoadSources(ini.LoadOptions{ Insensitive: true, |