Skip to content

Commit 059c62a

Browse files
committed
ci test
1 parent bef942b commit 059c62a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

i18n/gi18n/gi18n_z_unit_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ import (
1010
"context"
1111
"testing"
1212

13+
_ "github.com/gogf/gf/v2/os/gres/testdata/data"
14+
1315
"github.com/gogf/gf/v2/debug/gdebug"
1416
"github.com/gogf/gf/v2/frame/g"
1517
"github.com/gogf/gf/v2/i18n/gi18n"
1618
"github.com/gogf/gf/v2/os/gfile"
1719
"github.com/gogf/gf/v2/os/gres"
18-
_ "github.com/gogf/gf/v2/os/gres/testdata/data"
1920
"github.com/gogf/gf/v2/os/gtime"
2021
"github.com/gogf/gf/v2/test/gtest"
2122
"github.com/gogf/gf/v2/util/gconv"
@@ -133,6 +134,7 @@ func Test_Instance(t *testing.T) {
133134
// Default language is: en
134135
gtest.C(t, func(t *gtest.T) {
135136
m := gi18n.Instance(gconv.String(gtime.TimestampNano()))
137+
m.SetPath("i18n-dir")
136138
t.Assert(m.T(context.Background(), "{#hello}{#world}"), "HelloWorld")
137139
})
138140
}

0 commit comments

Comments
 (0)