wp
This commit is contained in:
39
mqe/index_test.go
Normal file
39
mqe/index_test.go
Normal file
@@ -0,0 +1,39 @@
|
||||
package mqe
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"gordenko.dev/dima/pretty"
|
||||
)
|
||||
|
||||
func TestDayIndex(t *testing.T) {
|
||||
index := IndexYmds([]int{
|
||||
20221201,
|
||||
20221202,
|
||||
20230110,
|
||||
20230210,
|
||||
20230330,
|
||||
20230331,
|
||||
20240101,
|
||||
20240102,
|
||||
20240103,
|
||||
})
|
||||
|
||||
pretty.Println(index)
|
||||
}
|
||||
|
||||
func TestMonthIndex(t *testing.T) {
|
||||
index := IndexYms([]int{
|
||||
202211,
|
||||
202212,
|
||||
202301,
|
||||
202302,
|
||||
202303,
|
||||
202304,
|
||||
202404,
|
||||
202405,
|
||||
202406,
|
||||
})
|
||||
|
||||
pretty.Println(index)
|
||||
}
|
||||
Reference in New Issue
Block a user