mirror of
https://github.com/Monibuca/engine.git
synced 2025-10-20 15:25:25 +08:00
feat: fit wrong timestamp
This commit is contained in:
15
util/timestamp_test.go
Normal file
15
util/timestamp_test.go
Normal 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))
|
||||
}
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user