gitee.com/quant1x/engine@v1.8.4/cache/datetime_test.go (about) 1 package cache 2 3 import ( 4 "fmt" 5 "testing" 6 ) 7 8 func TestCorrectDate(t *testing.T) { 9 date := "1991-12-19" 10 c, s := CorrectDate(date) 11 fmt.Println(c, s) 12 date = "2023-07-03" 13 c, s = CorrectDate(date) 14 fmt.Println(c, s) 15 date = "2023-07-10" 16 c, s = CorrectDate(date) 17 fmt.Println(c, s) 18 date = "2023-07-09" 19 c, s = CorrectDate(date) 20 fmt.Println(c, s) 21 date = "2023-07-08" 22 c, s = CorrectDate(date) 23 fmt.Println(c, s) 24 date = "2023-07-07" 25 c, s = CorrectDate(date) 26 fmt.Println(c, s) 27 }