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.
16 lines
371 B
Go
16 lines
371 B
Go
package remind
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func TestParse(t *testing.T) {
|
|
a, _ := matchPattern01("每两个小时")
|
|
fmt.Println(a.NextTimer(), a.BaseDate())
|
|
a, _ = matchPattern01("每五个月零二十五天三小时25分15秒")
|
|
fmt.Println(a.NextTimer(), a.BaseDate())
|
|
a, _ = matchPattern01("5月23日3点24分12秒")
|
|
fmt.Println(a.NextTimer(), a.BaseDate())
|
|
}
|