21 lines
305 B
Go
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))
|
|
}
|