11 lines
343 B
Go
11 lines
343 B
Go
package seckill
|
|
|
|
import "testing"
|
|
|
|
func TestReportFailureReasonUsesXiaodianStopReason(t *testing.T) {
|
|
message := "失败|和平小店兑换失败: 对不起,Livelink登录态校验失败!"
|
|
if got := reportFailureReason(message); got != "和平小店绑定已失效,需重新绑定" {
|
|
t.Fatalf("reportFailureReason() = %q", got)
|
|
}
|
|
}
|