40 lines
447 B
Go
40 lines
447 B
Go
|
|
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)
|
||
|
|
}
|