improve testCfg_With_UTF8_BOM unit_test

This commit is contained in:
chenall
2020-07-25 14:07:33 +08:00
parent 937f8e6919
commit 437fc04620

View File

@ -479,7 +479,7 @@ func TestCfg_Config(t *testing.T) {
func TestCfg_With_UTF8_BOM(t *testing.T) {
gtest.C(t, func(t *gtest.T) {
cfg := g.Cfg()
cfg := g.Cfg("test-cfg-with-utf8-bom")
t.Assert(cfg.SetPath("testdata"), nil)
cfg.SetFileName("cfg-with-utf8-bom.toml")
t.Assert(cfg.GetInt("test.testInt"), 1)