11 lines
268 B
Go
11 lines
268 B
Go
package redisconst
|
|
|
|
import "testing"
|
|
|
|
func TestMostNewModuleVideoListKeyKeepsOriginalFormat(t *testing.T) {
|
|
got := GetMostNewModuleVideoListKey(1, 1, 10)
|
|
if want := "mostNewModuleVideoList:1:1:10"; got != want {
|
|
t.Fatalf("cache key = %q, want %q", got, want)
|
|
}
|
|
}
|