You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
460 B
Go

package players
import (
"context"
"joybuywork/internal/repository/cache"
_ "joybuywork/test"
"testing"
)
func TestGoldSpin(t *testing.T) {
ctx := context.Background()
user, err := cache.NewFissionUser(ctx, 4438).FindById(253453927955017728)
if err != nil {
t.Error(err)
}
user.LangMark = "zh"
kg, err := NewGold(ctx, user)
if err != nil {
t.Error(err)
}
num, add, err := kg.Spin()
if err != nil {
t.Error(err)
}
t.Log(num, add)
}