feat: fit wrong timestamp

This commit is contained in:
langhuihui
2024-01-04 19:01:19 +08:00
parent 453ea6a6f2
commit 048c7eb0a8
5 changed files with 95 additions and 15 deletions

15
util/timestamp_test.go Normal file
View File

@@ -0,0 +1,15 @@
package util
import (
"testing"
)
func TestTimestamp(t *testing.T) {
t.Run(t.Name(), func(t *testing.T) {
var p TimestampProcessor
var testData = []int{0, 10, 20, 30, 40, 50, 60, 70, 80, 10, 20, 30, 40, 50, 60, 70, 80}
for _, v := range testData {
t.Log(p.ProcessTimestamp(v))
}
})
}