16 lines
283 B
Go
16 lines
283 B
Go
package lang
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
"github.com/yaoapp/gou/lang"
|
|
"github.com/yaoapp/yao/config"
|
|
"github.com/yaoapp/yao/share"
|
|
)
|
|
|
|
func TestLoad(t *testing.T) {
|
|
share.DBConnect(config.Conf.DB)
|
|
Load(config.Conf)
|
|
assert.Len(t, lang.Dicts, 2)
|
|
}
|