mirror of
https://gitee.com/johng/gf
synced 2026-06-07 02:12:11 +08:00
improve testCfg_With_UTF8_BOM unit_test
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user