liuhaijun e94826ce29 add server
Change-Id: I0760f17f6a01c0121b59fcbfafc666032dbc30af
2024-09-19 09:44:15 +00:00

17 lines
288 B
Go

package errors
import (
"testing"
)
func TestText(t *testing.T) {
var errorText = NewErrorText("zh_CN")
if "OK" != errorText.Text(0) {
t.Error("text 返回 msg 不是预期的")
}
if "unknown error" != errorText.Text(1202389) {
t.Error("text 返回 msg 不是预期的")
}
}