go_dreamfactory/utils/utils_test.go
2022-07-20 17:44:15 +08:00

21 lines
305 B
Go

package utils_test
import (
"fmt"
"go_dreamfactory/utils"
"testing"
)
func TestIsToday(t *testing.T) {
fmt.Println(utils.IsToday(1657163870))
}
func TestSubTime(t *testing.T) {
fmt.Println(utils.IsAfterWeek(1657172915))
}
func TestRandom(t *testing.T) {
fmt.Println(utils.GenValidateCode(6))
}